Spaces:
Running
Running
Download nginx.conf from Jishnupg/Opencode-Cli: direct link, hf CLI and curl.
- Browser
- Download file 1.25 kB
-
https://huggingface.co/spaces/Jishnupg/Opencode-Cli/resolve/main/nginx.conf
- Command line
-
hf download hf://spaces/Jishnupg/Opencode-Cli/nginx.conf
-
curl -L -o nginx.conf https://huggingface.co/spaces/Jishnupg/Opencode-Cli/resolve/main/nginx.conf
1.25 kB
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include /etc/nginx/mime.types; | |
| default_type application/octet-stream; | |
| sendfile on; | |
| port_in_redirect off; | |
| server_name_in_redirect off; | |
| map $http_upgrade $connection_upgrade { | |
| default upgrade; | |
| '' close; | |
| } | |
| server { | |
| listen 4096; | |
| server_name _; | |
| # Client body limit for file uploads (Jellyfin, media streaming) | |
| client_max_body_size 500M; | |
| # Single Edge Proxy Pass to FastAPI Gateway on 127.0.0.1:8000 | |
| location / { | |
| proxy_pass http://127.0.0.1:8000; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection $connection_upgrade; | |
| 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 $scheme; | |
| proxy_set_header X-Forwarded-Host $host; | |
| proxy_set_header X-Forwarded-Port $server_port; | |
| proxy_buffering off; | |
| proxy_connect_timeout 60s; | |
| proxy_send_timeout 300s; | |
| proxy_read_timeout 300s; | |
| } | |
| } | |
| } | |