2
0

default 424 B

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