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 /1/ { 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; } } }