bind to localhost for file serving by default
This commit is contained in:
parent
0b3adeb5db
commit
9d53fc171a
2
main.go
2
main.go
@ -49,7 +49,7 @@ func init() {
|
|||||||
flag.StringVar(&acmeListen, "alisten", ":80", "Listen for acme requests on")
|
flag.StringVar(&acmeListen, "alisten", ":80", "Listen for acme requests on")
|
||||||
flag.StringVar(&cacheDir, "cache", fmt.Sprintf("%s/.cache", dir), "Directory in which to store ACME certificates.")
|
flag.StringVar(&cacheDir, "cache", fmt.Sprintf("%s/.cache", dir), "Directory in which to store ACME certificates.")
|
||||||
flag.StringVar(&davDir, "davdir", dir, "Directory to serve over WebDAV.")
|
flag.StringVar(&davDir, "davdir", dir, "Directory to serve over WebDAV.")
|
||||||
flag.StringVar(&listen, "http", ":8080", "Listen on")
|
flag.StringVar(&listen, "http", "127.0.0.1:8080", "Listen on")
|
||||||
flag.StringVar(&passPath, "htpass", fmt.Sprintf("%s/.htpasswd", dir), "Path to .htpasswd file..")
|
flag.StringVar(&passPath, "htpass", fmt.Sprintf("%s/.htpasswd", dir), "Path to .htpasswd file..")
|
||||||
flag.StringVar(&davPath, "davpath", "/dav/", "Directory containing files to serve over WebDAV.")
|
flag.StringVar(&davPath, "davpath", "/dav/", "Directory containing files to serve over WebDAV.")
|
||||||
flag.BoolVar(&test, "test", false, "Enable testing mode (uses staging LetsEncrypt).")
|
flag.BoolVar(&test, "test", false, "Enable testing mode (uses staging LetsEncrypt).")
|
||||||
|
Loading…
Reference in New Issue
Block a user