Gcscache
GCS Cache implements the autocet.Cache interface using Google Cloud Storage.
Install / Use
/learn @kelseyhightower/GcscacheREADME
GCS Cache
GCS Cache implements the autocert.Cache interface using Google Cloud Storage.
Example Usage
package main
import (
"crypto/tls"
"log"
"net/http"
"github.com/kelseyhightower/gcscache"
"golang.org/x/crypto/acme/autocert"
)
func main() {
cache, err := gcscache.New("bucket")
if err != nil {
log.Fatal(err)
}
m := autocert.Manager{
Cache: cache,
Prompt: autocert.AcceptTOS,
HostPolicy: autocert.HostWhitelist("example.org"),
}
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Autocert with Google Cloud Storage Cache"))
})
s := &http.Server{
Addr: "0.0.0.0:443",
Handler: mux,
TLSConfig: &tls.Config{GetCertificate: m.GetCertificate},
}
s.ListenAndServeTLS("", "")
}
Related Skills
node-connect
349.7kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.7kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.7kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
