Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit 5707891

Browse files
committed
Add ipv6 support
1 parent 594c172 commit 5707891

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

root/defaults/default

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
# redirect all traffic to https
55
#server {
66
# listen 80;
7+
# listen [::]:80;
78
# server_name _;
89
# return 301 https://$host$request_uri;
910
#}
1011

1112
# main server block
1213
server {
1314
listen 443 ssl default_server;
15+
listen [::]:443 ssl default_server;
1416

1517
root /config/www;
1618
index index.html index.htm index.php;
@@ -22,7 +24,7 @@ server {
2224

2325
# all ssl related config moved to ssl.conf
2426
include /config/nginx/ssl.conf;
25-
27+
2628
# enable for ldap auth
2729
#include /config/nginx/ldap.conf;
2830

@@ -55,6 +57,7 @@ server {
5557
# notice this is a new server block, you need a new server block for each subdomain
5658
#server {
5759
# listen 443 ssl;
60+
# listen [::]:443 ssl;
5861
#
5962
# root /config/www;
6063
# index index.html index.htm index.php;
@@ -69,7 +72,7 @@ server {
6972
# auth_basic "Restricted";
7073
# auth_basic_user_file /config/nginx/.htpasswd;
7174
# include /config/nginx/proxy.conf;
72-
# proxy_pass http://192.168.1.50:5050;
75+
# proxy_pass http://192.168.1.50:5050;
7376
# }
7477
#}
7578

@@ -78,6 +81,7 @@ server {
7881
# notice this is a new server block, you need a new server block for each subdomain
7982
#server {
8083
# listen 443 ssl;
84+
# listen [::]:443 ssl;
8185
#
8286
# root /config/www;
8387
# index index.html index.htm index.php;

0 commit comments

Comments
 (0)