diff --git a/server/cmd/museum/main.go b/server/cmd/museum/main.go index 2c9f5fdd4..bf661d7d6 100644 --- a/server/cmd/museum/main.go +++ b/server/cmd/museum/main.go @@ -712,7 +712,7 @@ func main() { } func runServer(environment string, server *gin.Engine) { - useTLS := viper.GetBool("http.use_tls") + useTLS := viper.GetBool("http.use-tls") if useTLS { certPath, err := config.CredentialFilePath("tls.cert") if err != nil { diff --git a/server/configurations/local.yaml b/server/configurations/local.yaml index ebb85833b..80274df19 100644 --- a/server/configurations/local.yaml +++ b/server/configurations/local.yaml @@ -69,7 +69,7 @@ log-file: "" http: # If true, bind to 443 and use TLS. # By default, this is false, and museum will bind to 8080 without TLS. - # use_tls: true + # use-tls: true # Database connection parameters db: diff --git a/server/configurations/production.yaml b/server/configurations/production.yaml index d3d48b356..937d0c907 100644 --- a/server/configurations/production.yaml +++ b/server/configurations/production.yaml @@ -1,7 +1,7 @@ log-file: /var/logs/museum.log http: - use_tls: true + use-tls: true stripe: path: diff --git a/server/scripts/deploy/museum.nginx.service b/server/scripts/deploy/museum.nginx.service index fa0472ca8..e484cc73f 100644 --- a/server/scripts/deploy/museum.nginx.service +++ b/server/scripts/deploy/museum.nginx.service @@ -11,7 +11,7 @@ ExecStartPre=-docker stop museum ExecStartPre=-docker rm museum ExecStart=docker run --name museum \ -e ENVIRONMENT=production \ - -e ENTE_HTTP-USE_TLS=0 \ + -e ENTE_HTTP_USE-TLS=1 \ --hostname "%H" \ -p 8080:8080 \ -p 2112:2112 \