Skip to content

Commit 4a0e618

Browse files
authored
Feat(nginx): Add support for IPv6 (#12710)
1 parent 7f563eb commit 4a0e618

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

nginx/nginx.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ http {
2525
server {
2626
server_tokens off;
2727
listen 8080;
28+
listen [::]:8080;
2829

2930
gzip on;
3031
gzip_types application/atom+xml application/geo+json application/javascript application/x-javascript application/json application/ld+json application/manifest+json application/rdf+xml application/rss+xml application/xhtml+xml application/xml font/eot font/otf font/ttf image/svg+xml text/css text/javascript text/plain text/xml;

nginx/nginx_TLS.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ http {
2020
}
2121
server {
2222
listen 8080;
23+
listen [::]:8080;
2324
location / {
2425
return 301 https://$host:8443$request_uri;
2526
}
@@ -32,6 +33,7 @@ http {
3233
server {
3334
server_tokens off;
3435
listen 8443 ssl;
36+
listen [::]:8443 ssl;
3537
server_name your.servername.com;
3638
ssl_certificate /etc/nginx/ssl/nginx.crt;
3739
ssl_certificate_key /etc/nginx/ssl/nginx.key;

0 commit comments

Comments
 (0)