Fix key name

This commit is contained in:
Manav Rathi 2024-03-18 13:07:36 +05:30
parent 30cf709eb2
commit 7ded8ad4fe
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View file

@ -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 {

View file

@ -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:

View file

@ -1,7 +1,7 @@
log-file: /var/logs/museum.log
http:
use_tls: true
use-tls: true
stripe:
path:

View file

@ -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 \