|
|
server { |
|
|
listen 7860; |
|
|
server_name _; |
|
|
|
|
|
client_max_body_size 50M; |
|
|
|
|
|
|
|
|
location /api/ { |
|
|
proxy_pass http://localhost:3001; |
|
|
proxy_http_version 1.1; |
|
|
proxy_set_header Upgrade $http_upgrade; |
|
|
proxy_set_header Connection 'upgrade'; |
|
|
proxy_set_header Host $host; |
|
|
proxy_cache_bypass $http_upgrade; |
|
|
proxy_read_timeout 300s; |
|
|
proxy_connect_timeout 75s; |
|
|
} |
|
|
|
|
|
|
|
|
location ~ ^/api/sandbox/[^/]+/command/[^/]+/stream$ { |
|
|
proxy_pass http://localhost:3001; |
|
|
proxy_http_version 1.1; |
|
|
proxy_set_header Connection ''; |
|
|
proxy_buffering off; |
|
|
proxy_cache off; |
|
|
proxy_read_timeout 3600s; |
|
|
chunked_transfer_encoding off; |
|
|
} |
|
|
|
|
|
|
|
|
location ~ ^/preview/(d+)/(.*)$ { |
|
|
proxy_pass http://localhost:$1/$2$is_args$args; |
|
|
proxy_http_version 1.1; |
|
|
proxy_set_header Upgrade $http_upgrade; |
|
|
proxy_set_header Connection 'upgrade'; |
|
|
proxy_set_header Host $host; |
|
|
proxy_cache_bypass $http_upgrade; |
|
|
proxy_read_timeout 300s; |
|
|
} |
|
|
|
|
|
|
|
|
location /health { |
|
|
proxy_pass http://localhost:3001/health; |
|
|
} |
|
|
|
|
|
|
|
|
location / { |
|
|
proxy_pass http://localhost:3001/; |
|
|
} |
|
|
} |