redirect.center
cloudflare-client
redirect.center | cloudflare-client | |
---|---|---|
1 | 4 | |
256 | 20 | |
- | - | |
0.0 | 2.6 | |
over 1 year ago | almost 2 years ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
redirect.center
-
CloudFlare Page Rules Alternative
Hello, redirect.center is an option whom have a selfhosted version.
cloudflare-client
-
curl: (60) SSL certificate problem on Cloudflare Container
% docker run --entrypoint /bin/sh -it oznu/cloudflare-ddns:latest -c "curl -vvI https://api.cloudflare.com/user/tokens/verify" | grep -A 8 "Server certificate" * Server certificate: * subject: C=US; ST=California; L=San Francisco; O=Cloudflare, Inc.; CN=api.cloudflare.com * start date: May 19 00:00:00 2022 GMT * expire date: May 19 23:59:59 2023 GMT * subjectAltName: host "api.cloudflare.com" matched cert's "api.cloudflare.com" * issuer: C=US; O=Cloudflare, Inc.; CN=Cloudflare Inc ECC CA-3 * SSL certificate verify ok. * Using HTTP2, server supports multi-use * Connection state changed (HTTP/2 confirmed)
-
Dynamic Subdomain Routing
this might workhttps://api.cloudflare.com/ based on what I found here https://community.cloudflare.com/t/create-a-subdomain-on-cloudflare-automatically/357063/2
-
Triggering Cloudflare Cache Purging with Netlify's Post-Deploy Hooks and a Google Cloud Function in Go
package purger import ( "fmt " "io" "log" "net/http" "strings" "github.com/GoogleCloudPlatform/functions-framework-go/functions" ) func init() { functions.HTTP("PurgeCache", purgeCache) } // httpError logs the error and returns an HTTP error message and code. func httpError(w http.ResponseWriter, err error, msg string, errorCode int) { errorMsg := fmt.Sprintf("%s: %v", msg, err) log.Printf("%s", errorMsg) http.Error(w, errorMsg, errorCode) } func purgeCache(w http.ResponseWriter, r *http.Request) { log.Printf("Received %s from %v", r.Method, r.RemoteAddr) if r.Method == "POST" { body, err := io.ReadAll(r.Body) if err != nil { httpError(w, err, "error reading POST body", http.StatusInternalServerError) return } log.Printf("Request body: %s", body) } // Send POST request to Cloudflare client := &http.Client{} data := `{"purge_everything":true}` req, err := http.NewRequest("POST", "https://api.cloudflare.com/client/v4/zones/ZONE_ID/purge_cache", strings.NewReader(data)) if err != nil { httpError(w, err, "error creating new Request", http.StatusInternalServerError) return } req.Header.Add("Authorization", "Bearer CLOUDFLARE-API-TOKEN") req.Header.Add("Content-Type", "application/json") cloudflareResp, err := client.Do(req) if err != nil { httpError(w, err, "error sending POST request", http.StatusInternalServerError) return } defer cloudflareResp.Body.Close() // Pass cloudflare response to caller cloudflareRespBody, err := io.ReadAll(cloudflareResp.Body) if err != nil { httpError(w, err, "error reading Cloudflare response", http.StatusInternalServerError) return } if cloudflareResp.StatusCode != http.StatusOK { msg := fmt.Sprintf("error non-200 status: %s", cloudflareRespBody) httpError(w, nil, msg, http.StatusInternalServerError) return } log.Printf("Cloudflare response: %s", cloudflareRespBody) _, err = w.Write(cloudflareRespBody) if err != nil { httpError(w, err, "error sending response to client", http.StatusInternalServerError) return } }
-
Cloudflare API Client Library
I've just built a small fetch-based, zero-dependency JavaScript library for Cloudflare API that works in Node.js, Deno, and CF Workers environment β https://github.com/kriasoft/cloudflare-client
What are some alternatives?
DNS-over-Discord - 1.1.1.1 works from a Discord server, thanks to the 1.1.1.1 bot. Invite the bot to your Discord server to start using DNS over Discord.
notion-api-worker - Notion as CMS with easy API access
CoreDNS - CoreDNS is a DNS server that chains plugins
vscode-restclient - REST Client Extension for Visual Studio Code
awesome-selfhosted - A list of Free Software network services and web applications which can be hosted on your own servers
AdGuardHome - Network-wide ads & trackers blocking DNS server
Nacos - an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
wasgubata - πΊοΈπ wasgubata fetches geolocation information for IP addresses and domains, written in Deno π¦