Spaces:
Paused
Paused
Download nginx.conf from EgorQwerty/server: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/spaces/EgorQwerty/server/resolve/main/nginx.conf
- Command line
-
hf download hf://spaces/EgorQwerty/server/nginx.conf
-
curl -L -o nginx.conf https://huggingface.co/spaces/EgorQwerty/server/resolve/main/nginx.conf
1.14 kB
| server { | |
| listen 7860; | |
| server_name localhost; | |
| location / { | |
| root /var/www/html; | |
| index index.html; | |
| try_files $uri $uri/ /index.html; | |
| } | |
| location /ubu/ { | |
| proxy_pass http://127.0.0.1:8050/; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; | |
| proxy_set_header Host $host; | |
| # ЭТО ВЫКЛЮЧАЕТ ЗАВИСАНИЕ: | |
| proxy_buffering off; | |
| proxy_request_buffering off; | |
| proxy_read_timeout 86400s; | |
| proxy_send_timeout 86400s; | |
| } | |
| location /term/ { | |
| proxy_pass http://127.0.0.1:8081/; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; | |
| proxy_set_header Host $host; | |
| } | |
| location /mqtt { | |
| proxy_pass http://127.0.0.1:9001; | |
| 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; | |
| } | |
| } |