Spaces:
Sleeping
Sleeping
Update nginx.conf
Browse files- nginx.conf +2 -9
nginx.conf
CHANGED
|
@@ -17,10 +17,7 @@ events {
|
|
| 17 |
}
|
| 18 |
|
| 19 |
http {
|
| 20 |
-
|
| 21 |
-
sendfile on;
|
| 22 |
-
tcp_nopush on;
|
| 23 |
-
tcp_nodelay on;
|
| 24 |
|
| 25 |
# 连接超时设置
|
| 26 |
keepalive_timeout 65;
|
|
@@ -52,15 +49,12 @@ http {
|
|
| 52 |
listen [::]:7860 reuseport;
|
| 53 |
server_name localhost;
|
| 54 |
|
| 55 |
-
|
| 56 |
-
limit_conn_zone $binary_remote_addr zone=addr:10m;
|
| 57 |
-
limit_conn addr 100;
|
| 58 |
|
| 59 |
location /hf/ {
|
| 60 |
rewrite ^/hf/(.*)$ /$1 break;
|
| 61 |
|
| 62 |
proxy_pass http://backend;
|
| 63 |
-
proxy_http_version 1.1;
|
| 64 |
proxy_set_header Upgrade $http_upgrade;
|
| 65 |
proxy_set_header Connection "upgrade";
|
| 66 |
proxy_set_header Host $host;
|
|
@@ -85,7 +79,6 @@ http {
|
|
| 85 |
|
| 86 |
location / {
|
| 87 |
proxy_pass http://backend;
|
| 88 |
-
proxy_http_version 1.1;
|
| 89 |
proxy_set_header Upgrade $http_upgrade;
|
| 90 |
proxy_set_header Connection "upgrade";
|
| 91 |
proxy_set_header Host $host;
|
|
|
|
| 17 |
}
|
| 18 |
|
| 19 |
http {
|
| 20 |
+
|
|
|
|
|
|
|
|
|
|
| 21 |
|
| 22 |
# 连接超时设置
|
| 23 |
keepalive_timeout 65;
|
|
|
|
| 49 |
listen [::]:7860 reuseport;
|
| 50 |
server_name localhost;
|
| 51 |
|
| 52 |
+
|
|
|
|
|
|
|
| 53 |
|
| 54 |
location /hf/ {
|
| 55 |
rewrite ^/hf/(.*)$ /$1 break;
|
| 56 |
|
| 57 |
proxy_pass http://backend;
|
|
|
|
| 58 |
proxy_set_header Upgrade $http_upgrade;
|
| 59 |
proxy_set_header Connection "upgrade";
|
| 60 |
proxy_set_header Host $host;
|
|
|
|
| 79 |
|
| 80 |
location / {
|
| 81 |
proxy_pass http://backend;
|
|
|
|
| 82 |
proxy_set_header Upgrade $http_upgrade;
|
| 83 |
proxy_set_header Connection "upgrade";
|
| 84 |
proxy_set_header Host $host;
|