Download nginx.conf from jetlan/ems: direct link, hf CLI and curl.
- Browser
- Download file 1.22 kB
-
https://huggingface.co/spaces/jetlan/ems/resolve/main/nginx.conf
- Command line
-
hf download hf://spaces/jetlan/ems/nginx.conf
-
curl -L -o nginx.conf https://huggingface.co/spaces/jetlan/ems/resolve/main/nginx.conf
1.22 kB
| server { | |
| listen 10080; | |
| server_name _; | |
| client_max_body_size 100m; | |
| proxy_read_timeout 600s; | |
| proxy_send_timeout 600s; | |
| # ===== 根路径:静态首页 ===== | |
| location = / { | |
| root /usr/share/nginx/html; | |
| index index.html; | |
| try_files /index.html =404; | |
| } | |
| # ===== LiteLLM Web UI 及其静态资源 ===== | |
| location /ui { | |
| proxy_pass http://127.0.0.1:4000; | |
| proxy_http_version 1.1; | |
| 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 Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; | |
| } | |
| # ===== LiteLLM API(/v1、/model、/health 等)===== | |
| location / { | |
| proxy_pass http://127.0.0.1:4000; | |
| proxy_http_version 1.1; | |
| 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 Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; | |
| } | |
| } |