misc: fix handling boolean values
Fixes: https://github.com/jitsi/docker-jitsi-meet/issues/30
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
|
||||
{{ if .Env.ENABLE_HTTP_REDIRECT }}
|
||||
{{ if .Env.ENABLE_HTTP_REDIRECT | default "0" | toBool }}
|
||||
return 301 https://$host$request_uri;
|
||||
{{ else }}
|
||||
include /config/nginx/meet.conf;
|
||||
{{ end }}
|
||||
}
|
||||
|
||||
{{ if not .Env.DISABLE_HTTPS }}
|
||||
{{ if not (.Env.DISABLE_HTTPS | default "0" | toBool) }}
|
||||
server {
|
||||
listen 443 ssl;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user