Parcourir la source

web: add IPv6 support

Ludovic Muller il y a 4 ans
Parent
commit
5ceaf5fd02
1 fichiers modifiés avec 2 ajouts et 0 suppressions
  1. 2 0
      web/rootfs/defaults/default

+ 2 - 0
web/rootfs/defaults/default

@@ -1,5 +1,6 @@
 server {
 	listen 80 default_server;
+	listen [::]:80 default_server;
 
 	{{ if .Env.ENABLE_HTTP_REDIRECT | default "0" | toBool }}
 	return 301 https://$host$request_uri;
@@ -11,6 +12,7 @@ server {
 {{ if not (.Env.DISABLE_HTTPS | default "0" | toBool) }}
 server {
 	listen 443 ssl http2;
+	listen [::]:443 ssl http2;
 
 	include /config/nginx/ssl.conf;
 	include /config/nginx/meet.conf;