add IPv6 Support for NGINX reverse proxy

Kevin Pfeifer 2022-12-08 12:35:21 +01:00
parent 637a82bf7c
commit 24f0fd299b

@ -26,7 +26,8 @@ With SSL:
```nginx ```nginx
server { server {
listen 443 ssl http2; listen 443 ssl http2;
#listen [::]:443 ssl http2; # Remove '#' in the next line to enable IPv6
# listen [::]:443 ssl http2;
server_name sub.domain.com; server_name sub.domain.com;
ssl_certificate /path/to/ssl/cert/crt; ssl_certificate /path/to/ssl/cert/crt;
ssl_certificate_key /path/to/ssl/key/key; ssl_certificate_key /path/to/ssl/key/key;
@ -47,7 +48,8 @@ Without SSL:
```nginx ```nginx
server { server {
listen 80; listen 80;
#listen [::]:80; # Remove '#' in the next line to enable IPv6
# listen [::]:80;
server_name sub.domain.com; server_name sub.domain.com;
location / { location / {
proxy_pass http://localhost:3001; proxy_pass http://localhost:3001;