Download nginx.conf.template from f2d90b38/codede: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/spaces/f2d90b38/codede/resolve/main/nginx.conf.template
- Command line
-
hf download hf://spaces/f2d90b38/codede/nginx.conf.template
-
curl -L -o nginx.conf.template https://huggingface.co/spaces/f2d90b38/codede/resolve/main/nginx.conf.template
1.21 kB
| server { | |
| listen ${PORT}; | |
| server_name _; | |
| absolute_redirect off; | |
| port_in_redirect off; | |
| location ^~ /v0/management { | |
| proxy_pass http://${CLI_PROXY_HOST}:${CLI_PROXY_PORT}; | |
| 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"; | |
| proxy_set_header X-Management-Key "${MANAGEMENT_KEY}"; | |
| proxy_set_header X-Api-Key "${MANAGEMENT_KEY}"; | |
| proxy_set_header Authorization "Bearer ${MANAGEMENT_KEY}"; | |
| proxy_read_timeout 300; | |
| } | |
| location / { | |
| proxy_pass http://${CLI_PROXY_HOST}:${CLI_PROXY_PORT}; | |
| 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"; | |
| proxy_read_timeout 300; | |
| } | |
| } | |