Download nginx.conf from Nerdur/webui: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/spaces/Nerdur/webui/resolve/main/nginx.conf
- Command line
-
hf download hf://spaces/Nerdur/webui/nginx.conf
-
curl -L -o nginx.conf https://huggingface.co/spaces/Nerdur/webui/resolve/main/nginx.conf
1.33 kB
| worker_processes 1; | |
| error_log /dev/stderr warn; | |
| pid /tmp/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| access_log off; | |
| # Temp dirs u /tmp jer nemamo root write pristup | |
| client_body_temp_path /tmp/nginx_client; | |
| proxy_temp_path /tmp/nginx_proxy; | |
| fastcgi_temp_path /tmp/nginx_fastcgi; | |
| uwsgi_temp_path /tmp/nginx_uwsgi; | |
| scgi_temp_path /tmp/nginx_scgi; | |
| server { | |
| listen 8080; | |
| server_name _; | |
| # Preset Creator tool | |
| location /preset-creator { | |
| proxy_pass http://127.0.0.1:8081/preset-creator; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| } | |
| # Sve ostalo → Open WebUI (internal port 7860) | |
| location / { | |
| proxy_pass http://127.0.0.1:7860; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header 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_read_timeout 300s; | |
| proxy_send_timeout 300s; | |
| proxy_buffering off; | |
| client_max_body_size 100M; | |
| } | |
| } | |
| } | |