mirror of
https://github.com/balzack/databag.git
synced 2025-02-19 06:29:23 +00:00
fixing path to certbot cert
This commit is contained in:
parent
77c11b9868
commit
c1f4db8fc6
@ -21,11 +21,11 @@ func main() {
|
|||||||
args := os.Args
|
args := os.Args
|
||||||
if len(args) == 3 {
|
if len(args) == 3 {
|
||||||
port := ":" + args[2]
|
port := ":" + args[2]
|
||||||
path := "etc/letsencrypt/live/" + args[1]
|
path := "/etc/letsencrypt/live/" + args[1]
|
||||||
log.Printf("starting server at: " + path + " " + port);
|
log.Printf("starting server at: " + path + " " + port);
|
||||||
log.Fatal(http.ListenAndServeTLS(port, path + "/fullchain.pem", path + "/privkey.pem", handlers.CORS(origins, methods)(router)))
|
log.Fatal(http.ListenAndServeTLS(port, path + "/fullchain.pem", path + "/privkey.pem", handlers.CORS(origins, methods)(router)))
|
||||||
} else if len(args) == 2 {
|
} else if len(args) == 2 {
|
||||||
path := "etc/letsencrypt/live/" + args[1]
|
path := "/etc/letsencrypt/live/" + args[1]
|
||||||
log.Printf("starting server at: " + path);
|
log.Printf("starting server at: " + path);
|
||||||
log.Fatal(http.ListenAndServeTLS(":443", path + "/fullchain.pem", path + "/privkey.pem", handlers.CORS(origins, methods)(router)))
|
log.Fatal(http.ListenAndServeTLS(":443", path + "/fullchain.pem", path + "/privkey.pem", handlers.CORS(origins, methods)(router)))
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user