Files
jitsi-meet-deployment/web/rootfs/defaults/default
Saúl Ibarra Corretgé cda11bc52f web: add ability to redirect HTTP traffic to HTTPS
Useful if you're running this setup directly on the Internet, with a
Let's Encrypt certificate.
2018-11-07 14:27:22 +01:00

19 lines
310 B
Plaintext

server {
listen 80 default_server;
{{ if .Env.ENABLE_HTTP_REDIRECT }}
return 301 https://$host$request_uri;
{{ else }}
include /config/nginx/meet.conf;
{{ end }}
}
{{ if not .Env.DISABLE_HTTPS }}
server {
listen 443 ssl;
include /config/nginx/ssl.conf;
include /config/nginx/meet.conf;
}
{{ end }}