2
0

default 364 B

123456789101112131415161718
  1. server {
  2. listen 80 default_server;
  3. {{ if .Env.ENABLE_HTTP_REDIRECT | default "0" | toBool }}
  4. return 301 https://$host$request_uri;
  5. {{ else }}
  6. include /config/nginx/meet.conf;
  7. {{ end }}
  8. }
  9. {{ if not (.Env.DISABLE_HTTPS | default "0" | toBool) }}
  10. server {
  11. listen 443 ssl http2;
  12. include /config/nginx/ssl.conf;
  13. include /config/nginx/meet.conf;
  14. }
  15. {{ end }}