8900 commited on
Create nginx.conf
Browse files- nginx.conf +28 -0
nginx.conf
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
server {
|
| 2 |
+
listen 7860;
|
| 3 |
+
server_name _;
|
| 4 |
+
|
| 5 |
+
access_log /dev/stdout;
|
| 6 |
+
error_log /dev/stderr warn;
|
| 7 |
+
|
| 8 |
+
location / {
|
| 9 |
+
proxy_pass http://127.0.0.1:18789;
|
| 10 |
+
proxy_http_version 1.1;
|
| 11 |
+
|
| 12 |
+
proxy_set_header Upgrade $http_upgrade;
|
| 13 |
+
proxy_set_header Connection "upgrade";
|
| 14 |
+
|
| 15 |
+
proxy_set_header Host $host;
|
| 16 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 17 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
| 18 |
+
proxy_set_header X-Forwarded-Proto https;
|
| 19 |
+
proxy_set_header X-Forwarded-Host $host;
|
| 20 |
+
|
| 21 |
+
proxy_read_timeout 86400s;
|
| 22 |
+
proxy_send_timeout 86400s;
|
| 23 |
+
proxy_connect_timeout 75s;
|
| 24 |
+
|
| 25 |
+
proxy_buffering off;
|
| 26 |
+
proxy_cache off;
|
| 27 |
+
}
|
| 28 |
+
}
|