Download nginx.conf from YYP0502/Bot: direct link, hf CLI and curl.
- Browser
- Download file 1.04 kB
-
https://huggingface.co/spaces/YYP0502/Bot/resolve/main/nginx.conf
- Command line
-
hf download hf://spaces/YYP0502/Bot/nginx.conf
-
curl -L -o nginx.conf https://huggingface.co/spaces/YYP0502/Bot/resolve/main/nginx.conf
1.04 kB
| worker_processes 1; | |
| pid /tmp/nginx.pid; | |
| error_log /dev/stderr warn; | |
| events { worker_connections 1024; } | |
| http { | |
| access_log off; | |
| client_max_body_size 100m; | |
| map $http_upgrade $connection_upgrade { | |
| default upgrade; | |
| '' close; | |
| } | |
| server { | |
| listen 7860; | |
| location = /mcp { add_header X-Space-Service home-assistant-mcp always; proxy_pass http://127.0.0.1:8000; include /etc/nginx/mcp-proxy.conf; } | |
| location /mcp/ { add_header X-Space-Service home-assistant-mcp always; proxy_pass http://127.0.0.1:8000; include /etc/nginx/mcp-proxy.conf; } | |
| location / { | |
| proxy_pass http://127.0.0.1:8123; | |
| proxy_http_version 1.1; | |
| proxy_set_header Host $http_host; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection $connection_upgrade; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_set_header X-Forwarded-Proto https; | |
| proxy_read_timeout 3600s; | |
| } | |
| } | |
| } | |