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