Spaces:
Paused
Paused
| daemon off; | |
| pid /tmp/nginx.pid; | |
| worker_processes 1; | |
| error_log /tmp/error.log debug; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| access_log /tmp/access.log; | |
| client_body_temp_path /tmp/nginx_client; | |
| proxy_temp_path /tmp/nginx_proxy; | |
| fastcgi_temp_path /tmp/nginx_fastcgi; | |
| uwsgi_temp_path /tmp/nginx_uwsgi; | |
| scgi_temp_path /tmp/nginx_scgi; | |
| map $http_upgrade $cu { default upgrade; '' close; } | |
| map $http_x_forwarded_proto $connect_proto { | |
| default $http_x_forwarded_proto; | |
| '' $scheme; | |
| } | |
| server { | |
| listen 7860; | |
| listen 7890; | |
| port_in_redirect off; | |
| absolute_redirect off; | |
| server_name_in_redirect off; | |
| location / { | |
| proxy_pass http://127.0.0.1:7861; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection $cu; | |
| 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 X-Forwarded-Proto $connect_proto; | |
| proxy_read_timeout 86400s; | |
| proxy_send_timeout 86400s; | |
| proxy_buffering off; | |
| } | |
| location /chisel-tunnel { | |
| proxy_pass http://127.0.0.1:6789/; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection $cu; | |
| proxy_set_header Host $host; | |
| proxy_read_timeout 86400s; | |
| proxy_send_timeout 86400s; | |
| } | |
| location /gost-bridge { | |
| proxy_pass http://127.0.0.1:6790; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; | |
| proxy_set_header Host $host; | |
| proxy_read_timeout 86400s; | |
| proxy_send_timeout 86400s; | |
| } | |
| location /model-sync { | |
| proxy_pass http://127.0.0.1:6795/; | |
| proxy_http_version 1.1; | |
| 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 X-Forwarded-Proto $connect_proto; | |
| proxy_read_timeout 86400s; | |
| proxy_send_timeout 86400s; | |
| } | |
| location /tensor-mesh { | |
| proxy_pass https://127.0.0.1:11601; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade websocket; | |
| proxy_set_header Connection Upgrade; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Proto $connect_proto; | |
| proxy_read_timeout 86400s; | |
| proxy_send_timeout 86400s; | |
| proxy_ssl_verify off; | |
| } | |
| # LiteLLM OpenAI-compatible API proxy (/v1/...). | |
| location /v1 { | |
| proxy_pass http://127.0.0.1:8080; | |
| proxy_http_version 1.1; | |
| 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 X-Forwarded-Proto $connect_proto; | |
| proxy_read_timeout 86400s; | |
| } | |
| location /health { | |
| proxy_pass http://127.0.0.1:8080; | |
| proxy_http_version 1.1; | |
| proxy_set_header Host $host; | |
| } | |
| location /routing-console { | |
| proxy_pass http://127.0.0.1:6801; | |
| proxy_http_version 1.1; | |
| 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 X-Forwarded-Proto $connect_proto; | |
| proxy_read_timeout 86400s; | |
| proxy_send_timeout 86400s; | |
| } | |
| } | |
| } | |