We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 177d55b commit f60f803Copy full SHA for f60f803
main.go
@@ -28,6 +28,7 @@ var (
28
staging = flag.Bool("s", false, "use staging CA")
29
upstream = flag.Int("u", 8080, "upstream port")
30
allowedPaths = flag.String("p", "", "Paths to proxy to the upstream server (all if empty)")
31
+ certCache = flag.String("c", "/mnt/ramdisk/certs", "certificate cache directory")
32
verbose = flag.Bool("v", false, "verbose logging")
33
34
email = "[email protected]"
@@ -101,6 +102,7 @@ func main() {
101
102
mux := http.NewServeMux()
103
104
// Request TLS certificate
105
+ certmagic.Default.Storage = &certmagic.FileStorage{Path: *certCache}
106
certmagic.DefaultACME.Email = email
107
if *staging {
108
certmagic.DefaultACME.CA = certmagic.LetsEncryptStagingCA
0 commit comments