2
0

default 310 B

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