|
@ -11,11 +11,12 @@ server { |
|
|
ssl_certificate_key /path/to/ssl/key/key; |
|
|
ssl_certificate_key /path/to/ssl/key/key; |
|
|
|
|
|
|
|
|
location / { |
|
|
location / { |
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
proxy_pass http://localhost:3001/; |
|
|
proxy_pass http://localhost:3001/; |
|
|
proxy_set_header Upgrade $http_upgrade; |
|
|
proxy_http_version 1.1; |
|
|
proxy_set_header Connection $connection_upgrade; |
|
|
proxy_set_header Upgrade $http_upgrade; |
|
|
|
|
|
proxy_set_header Connection $connection_upgrade; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
``` |
|
|
``` |
|
@ -26,11 +27,11 @@ server { |
|
|
listen 80; |
|
|
listen 80; |
|
|
server_name sub.domain.com; |
|
|
server_name sub.domain.com; |
|
|
location / { |
|
|
location / { |
|
|
proxy_pass http://localhost:3001; |
|
|
proxy_pass http://localhost: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"; |
|
|
proxy_set_header Host $host; |
|
|
proxy_set_header Host $host; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
``` |
|
|
``` |
|
|