mirror of
https://github.com/restic/rest-server.git
synced 2026-09-25 21:41:25 -07:00
start server correctly
This commit is contained in:
@@ -26,6 +26,9 @@ func main() {
|
|||||||
log.Printf("start server on port %s", HTTPS)
|
log.Printf("start server on port %s", HTTPS)
|
||||||
privateKey := filepath.Join(*path, "private_key")
|
privateKey := filepath.Join(*path, "private_key")
|
||||||
publicKey := filepath.Join(*path, "public_key")
|
publicKey := filepath.Join(*path, "public_key")
|
||||||
http.ListenAndServeTLS(HTTPS, privateKey, publicKey, router)
|
|
||||||
|
log.Printf("private key: %s", privateKey)
|
||||||
|
log.Printf("public key: %s", publicKey)
|
||||||
|
http.ListenAndServeTLS(HTTPS, publicKey, privateKey, router)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user