Spaces:
Running
Running
Download nginx.conf from xingyuanzhao/nocode-workflow: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/xingyuanzhao/nocode-workflow/resolve/main/nginx.conf
- Command line
-
hf download hf://spaces/xingyuanzhao/nocode-workflow/nginx.conf
-
curl -L -o nginx.conf https://huggingface.co/spaces/xingyuanzhao/nocode-workflow/resolve/main/nginx.conf
1.06 kB
| worker_processes 1; | |
| pid /tmp/nginx.pid; | |
| error_log /dev/stderr; | |
| events { | |
| worker_connections 128; | |
| } | |
| http { | |
| include /etc/nginx/mime.types; | |
| default_type application/octet-stream; | |
| access_log /dev/stdout; | |
| sendfile on; | |
| keepalive_timeout 65; | |
| server { | |
| listen 7860; | |
| location /api/ { | |
| proxy_pass http://127.0.0.1:8000; | |
| proxy_http_version 1.1; | |
| proxy_set_header Connection ""; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_buffering off; | |
| proxy_read_timeout 300s; | |
| } | |
| location /openapi.json { | |
| proxy_pass http://127.0.0.1:8000; | |
| } | |
| location /assets/ { | |
| root /app/gui-dist; | |
| expires 1y; | |
| add_header Cache-Control "public, immutable"; | |
| } | |
| location / { | |
| root /app/gui-dist; | |
| index index.html; | |
| try_files $uri $uri/ /index.html; | |
| add_header Cache-Control "no-cache"; | |
| } | |
| } | |
| } | |