Applied env package for file names for server cmd

This commit is contained in:
qowevisa 2024-02-25 19:15:51 +02:00
parent ca3534c5f4
commit 99d13f3cde

View File

@ -21,7 +21,10 @@ func main() {
log.Fatal(err)
}
cert, err := tls.LoadX509KeyPair("server.pem", "server.key")
cert, err := tls.LoadX509KeyPair(
env.ServerFullchainFileName,
env.ServerPrivKeyFileName,
)
if err != nil {
log.Fatalf("server: loadkeys: %s", err)
}