web: add ability to disable HTTPS

If TLS is terminated elsewhere and then connections are proxied over
HTTP, there is no need for it and it makes initialization a tad slower
on the first run.
This commit is contained in:
Saúl Ibarra Corretgé
2018-11-07 14:15:09 +01:00
parent 5c988de8b6
commit fcf83859e4
5 changed files with 31 additions and 23 deletions

View File

@@ -4,9 +4,11 @@ server {
include /config/nginx/meet.conf;
}
{{ if not .Env.DISABLE_HTTPS }}
server {
listen 443 ssl;
include /config/nginx/ssl.conf;
include /config/nginx/meet.conf;
}
{{ end }}