Spaces:
Paused
Paused
Download nginx.conf from onlyrickroll/chat1: direct link, hf CLI and curl.
- Browser
- Download file 812 Bytes
-
https://huggingface.co/spaces/onlyrickroll/chat1/resolve/961beb202324ba7e576a9bba0b158366f501658e/nginx.conf
- Command line
-
hf download hf://spaces/onlyrickroll/chat1@961beb202324ba7e576a9bba0b158366f501658e/nginx.conf
-
curl -L -o nginx.conf https://huggingface.co/spaces/onlyrickroll/chat1/resolve/961beb202324ba7e576a9bba0b158366f501658e/nginx.conf
812 Bytes
| worker_processes auto; | |
| pid /tmp/nginx.pid; # 非特权用户可写 | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| # 设置非特权用户可写的临时路径 | |
| client_body_temp_path /tmp/client_body; | |
| proxy_temp_path /tmp/proxy_temp; | |
| fastcgi_temp_path /tmp/fastcgi_temp; | |
| server { | |
| listen 7860; | |
| server_name localhost; | |
| # 根目录反代 8080 (C/C++ 服务) | |
| location / { | |
| proxy_pass http://127.0.0.1:8080; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| } | |
| # /bot 路径反代 8888 (Python 服务) | |
| location /bot { | |
| proxy_pass http://127.0.0.1:8888; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| } | |
| } | |
| } |