ACCA225 commited on
Commit
39f43df
1 Parent(s): 096363f

Upload proxy_nginx.conf

Browse files
Files changed (1) hide show
  1. proxy_nginx.conf +70 -0
proxy_nginx.conf ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ events {
2
+ worker_connections 1024; # Adjust this value based on your server's requirements
3
+ }
4
+ http {
5
+ server {
6
+ listen 7860;
7
+ listen [::]:7860;
8
+ server_name 127.0.0.1 localhost 0.0.0.0 "";
9
+
10
+ if ($request_method = OPTIONS) {
11
+ return 200;
12
+ }
13
+
14
+ fastcgi_send_timeout 10m;
15
+ fastcgi_read_timeout 10m;
16
+ fastcgi_connect_timeout 10m;
17
+
18
+ location /sd2/ {
19
+ proxy_pass http://127.0.0.1:7862/;
20
+ proxy_set_header Host $host;
21
+ proxy_set_header X-Real-IP $remote_addr;
22
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
23
+ proxy_set_header REMOTE-HOST $remote_addr;
24
+ proxy_set_header Upgrade $http_upgrade;
25
+ proxy_set_header Connection upgrade;
26
+ proxy_http_version 1.1;
27
+ proxy_connect_timeout 10m;
28
+ proxy_read_timeout 10m;
29
+ }
30
+
31
+ location /sd3/ {
32
+ proxy_pass http://127.0.0.1:7863/;
33
+ proxy_set_header Host $host;
34
+ proxy_set_header X-Real-IP $remote_addr;
35
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
36
+ proxy_set_header REMOTE-HOST $remote_addr;
37
+ proxy_set_header Upgrade $http_upgrade;
38
+ proxy_set_header Connection upgrade;
39
+ proxy_http_version 1.1;
40
+ proxy_connect_timeout 10m;
41
+ proxy_read_timeout 10m;
42
+ }
43
+
44
+ location / {
45
+ proxy_pass http://127.0.0.1:7861/;
46
+ proxy_set_header Host $host;
47
+ proxy_set_header X-Real-IP $remote_addr;
48
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
49
+ proxy_set_header REMOTE-HOST $remote_addr;
50
+ proxy_set_header Upgrade $http_upgrade;
51
+ proxy_set_header Connection upgrade;
52
+ proxy_http_version 1.1;
53
+ proxy_connect_timeout 10m;
54
+ proxy_read_timeout 10m;
55
+ }
56
+
57
+ location /1/ {
58
+ proxy_pass http://127.0.0.1:7862/;
59
+ proxy_set_header Host $host;
60
+ proxy_set_header X-Real-IP $remote_addr;
61
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
62
+ proxy_set_header REMOTE-HOST $remote_addr;
63
+ proxy_set_header Upgrade $http_upgrade;
64
+ proxy_set_header Connection upgrade;
65
+ proxy_http_version 1.1;
66
+ proxy_connect_timeout 10m;
67
+ proxy_read_timeout 10m;
68
+ }
69
+ }
70
+ }