Files
jitsi-meet-deployment/web/rootfs/defaults/default
Amin Vakil b95c95de0e web: improve nginx configuration
* Enable http2 by default
* Disable server_tokens by default
2020-04-15 12:09:28 +02:00

19 lines
364 B
Plaintext

server {
listen 80 default_server;
{{ 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 | default "0" | toBool) }}
server {
listen 443 ssl http2;
include /config/nginx/ssl.conf;
include /config/nginx/meet.conf;
}
{{ end }}