change ipv
This commit is contained in:
parent
6f4a61855f
commit
43a65529d3
1 changed files with 4 additions and 3 deletions
|
|
@ -20,8 +20,9 @@ server {
|
||||||
# return 301 https://$server_name$request_uri;
|
# return 301 https://$server_name$request_uri;
|
||||||
|
|
||||||
# Proxy ALL requests (including assets) to Node.js server
|
# Proxy ALL requests (including assets) to Node.js server
|
||||||
|
# Use 127.0.0.1 instead of localhost to force IPv4 (localhost can resolve to IPv6 ::1)
|
||||||
location / {
|
location / {
|
||||||
proxy_pass http://localhost:3001;
|
proxy_pass http://127.0.0.1:3001;
|
||||||
proxy_http_version 1.1;
|
proxy_http_version 1.1;
|
||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Connection 'upgrade';
|
proxy_set_header Connection 'upgrade';
|
||||||
|
|
@ -48,7 +49,7 @@ server {
|
||||||
# server_name your-domain.com www.your-domain.com; # Replace with your domain
|
# server_name your-domain.com www.your-domain.com; # Replace with your domain
|
||||||
#
|
#
|
||||||
# location / {
|
# location / {
|
||||||
# proxy_pass http://localhost:3001;
|
# proxy_pass http://127.0.0.1:3001;
|
||||||
# proxy_http_version 1.1;
|
# proxy_http_version 1.1;
|
||||||
# proxy_set_header Upgrade $http_upgrade;
|
# proxy_set_header Upgrade $http_upgrade;
|
||||||
# proxy_set_header Connection 'upgrade';
|
# proxy_set_header Connection 'upgrade';
|
||||||
|
|
@ -81,7 +82,7 @@ server {
|
||||||
# ssl_prefer_server_ciphers on;
|
# ssl_prefer_server_ciphers on;
|
||||||
#
|
#
|
||||||
# location / {
|
# location / {
|
||||||
# proxy_pass http://localhost:3001;
|
# proxy_pass http://127.0.0.1:3001;
|
||||||
# proxy_http_version 1.1;
|
# proxy_http_version 1.1;
|
||||||
# proxy_set_header Upgrade $http_upgrade;
|
# proxy_set_header Upgrade $http_upgrade;
|
||||||
# proxy_set_header Connection 'upgrade';
|
# proxy_set_header Connection 'upgrade';
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue