add nginx
Browse files- nginx.conf +41 -0
nginx.conf
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
server {
|
2 |
+
listen 4444 default_server;
|
3 |
+
listen [::]:4444 default_server;
|
4 |
+
|
5 |
+
server_name _; # Modify your domain name accordingly
|
6 |
+
|
7 |
+
location / {
|
8 |
+
# Serve GRADIO 7860
|
9 |
+
proxy_pass http://localhost:7860;
|
10 |
+
proxy_http_version 1.1;
|
11 |
+
proxy_set_header Upgrade $http_upgrade;
|
12 |
+
proxy_set_header Connection 'upgrade';
|
13 |
+
proxy_set_header Host $host;
|
14 |
+
proxy_set_header X-Real-IP $remote_addr;
|
15 |
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
16 |
+
proxy_cache_bypass $http_upgrade;
|
17 |
+
proxy_read_timeout 86400;
|
18 |
+
proxy_redirect off;
|
19 |
+
}
|
20 |
+
|
21 |
+
location /one/ {
|
22 |
+
client_max_body_size 64m;
|
23 |
+
proxy_http_version 1.1;
|
24 |
+
proxy_pass http://localhost:3000; # Modify your port accordingly
|
25 |
+
proxy_set_header Host $host;
|
26 |
+
proxy_set_header X-Forwarded-For $remote_addr;
|
27 |
+
proxy_cache_bypass $http_upgrade;
|
28 |
+
proxy_set_header Accept-Encoding gzip;
|
29 |
+
}
|
30 |
+
|
31 |
+
location /poe/ {
|
32 |
+
client_max_body_size 64m;
|
33 |
+
proxy_http_version 1.1;
|
34 |
+
proxy_pass http://localhost:3700; # Modify your port accordingly
|
35 |
+
proxy_set_header Host $host;
|
36 |
+
proxy_set_header X-Forwarded-For $remote_addr;
|
37 |
+
proxy_cache_bypass $http_upgrade;
|
38 |
+
proxy_set_header Accept-Encoding gzip;
|
39 |
+
}
|
40 |
+
}
|
41 |
+
|