web: add IPv6 support
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
server {
|
server {
|
||||||
listen 80 default_server;
|
listen 80 default_server;
|
||||||
|
listen [::]:80 default_server;
|
||||||
|
|
||||||
{{ if .Env.ENABLE_HTTP_REDIRECT | default "0" | toBool }}
|
{{ if .Env.ENABLE_HTTP_REDIRECT | default "0" | toBool }}
|
||||||
return 301 https://$host$request_uri;
|
return 301 https://$host$request_uri;
|
||||||
@@ -11,6 +12,7 @@ server {
|
|||||||
{{ if not (.Env.DISABLE_HTTPS | default "0" | toBool) }}
|
{{ if not (.Env.DISABLE_HTTPS | default "0" | toBool) }}
|
||||||
server {
|
server {
|
||||||
listen 443 ssl http2;
|
listen 443 ssl http2;
|
||||||
|
listen [::]:443 ssl http2;
|
||||||
|
|
||||||
include /config/nginx/ssl.conf;
|
include /config/nginx/ssl.conf;
|
||||||
include /config/nginx/meet.conf;
|
include /config/nginx/meet.conf;
|
||||||
|
|||||||
Reference in New Issue
Block a user