jitsi-k8s/containers/non-root/web/defaults/default

27 lines
556 B
Plaintext
Raw Permalink Normal View History

2024-07-15 14:39:02 +00:00
server {
2024-07-15 19:36:29 +00:00
listen 8000 default_server;
2024-07-15 14:39:02 +00:00
{{ if .Env.ENABLE_IPV6 | default "1" | toBool }}
2024-07-15 19:36:29 +00:00
listen [::]:8000 default_server;
2024-07-15 14:39:02 +00:00
{{ end }}
{{ if .Env.ENABLE_HTTP_REDIRECT | default "0" | toBool }}
return 301 https://$host$request_uri;
{{ else }}
include /config/nginx/meet.conf;
{{ end }}
}
{{ if not (.Env.DISABLE_HTTPS | default "0" | toBool) }}
server {
2024-07-15 19:36:29 +00:00
listen 8443 ssl http2;
2024-07-15 14:39:02 +00:00
{{ if .Env.ENABLE_IPV6 | default "1" | toBool }}
2024-07-15 19:36:29 +00:00
listen [::]:8443 ssl http2;
2024-07-15 14:39:02 +00:00
{{ end }}
include /config/nginx/ssl.conf;
include /config/nginx/meet.conf;
}
{{ end }}