Spaces:
Paused
Paused
Update nginx.conf
Browse files- nginx.conf +14 -3
nginx.conf
CHANGED
|
@@ -56,8 +56,19 @@ http {
|
|
| 56 |
proxy_ssl_verify off; # 如果上游证书验证有问题,可以先关闭验证
|
| 57 |
proxy_ssl_server_name on; # 启用 SNI 支持
|
| 58 |
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
}
|
| 63 |
}
|
|
|
|
| 56 |
proxy_ssl_verify off; # 如果上游证书验证有问题,可以先关闭验证
|
| 57 |
proxy_ssl_server_name on; # 启用 SNI 支持
|
| 58 |
|
| 59 |
+
server {
|
| 60 |
+
listen 4444;
|
| 61 |
+
server_name localhost;
|
| 62 |
+
|
| 63 |
+
location / {
|
| 64 |
+
proxy_pass http://localhost:3000/;
|
| 65 |
+
proxy_set_header X-Forwarded-Host $scheme://$host:$server_port;
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
# 错误页面配置
|
| 69 |
+
error_page 500 502 503 504 /50x.html;
|
| 70 |
+
location = /50x.html {
|
| 71 |
+
root /usr/share/nginx/html;
|
| 72 |
+
}
|
| 73 |
}
|
| 74 |
}
|