Applied env package for file names for server cmd
This commit is contained in:
parent
ca3534c5f4
commit
99d13f3cde
|
@ -21,7 +21,10 @@ func main() {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
cert, err := tls.LoadX509KeyPair("server.pem", "server.key")
|
cert, err := tls.LoadX509KeyPair(
|
||||||
|
env.ServerFullchainFileName,
|
||||||
|
env.ServerPrivKeyFileName,
|
||||||
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("server: loadkeys: %s", err)
|
log.Fatalf("server: loadkeys: %s", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user