2
0

default 550 B

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