Download nginx.conf from altool/redpanda: direct link, hf CLI and curl.
- Browser
- Download file 1.9 kB
-
https://huggingface.co/spaces/altool/redpanda/resolve/main/nginx.conf
- Command line
-
hf download hf://spaces/altool/redpanda/nginx.conf
-
curl -L -o nginx.conf https://huggingface.co/spaces/altool/redpanda/resolve/main/nginx.conf
1.9 kB
| worker_processes 1; | |
| pid /run/nginx.pid; | |
| error_log /var/log/nginx/error.log warn; | |
| events { | |
| worker_connections 256; | |
| } | |
| http { | |
| access_log /var/log/nginx/access.log; | |
| client_body_temp_path /var/lib/nginx/body; | |
| proxy_temp_path /var/lib/nginx/proxy; | |
| server { | |
| listen 7860; | |
| # ββ Redpanda Console UI ββββββββββββββββββββββββββ | |
| location /ui/ { | |
| proxy_pass http://127.0.0.1:8080/ui/; | |
| proxy_set_header Host $host; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; | |
| } | |
| # ββ Pandaproxy β Kafka REST API ββββββββββββββββββ | |
| location /kafka/ { | |
| rewrite ^/kafka/(.*) /$1 break; | |
| proxy_pass http://127.0.0.1:8082; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_read_timeout 300s; | |
| proxy_send_timeout 300s; | |
| } | |
| # ββ Schema Registry ββββββββββββββββββββββββββββββ | |
| location /schema/ { | |
| rewrite ^/schema/(.*) /$1 break; | |
| proxy_pass http://127.0.0.1:8081; | |
| proxy_set_header Host $host; | |
| } | |
| # ββ Admin API ββββββββββββββββββββββββββββββββββββ | |
| location /admin/ { | |
| rewrite ^/admin/(.*) /$1 break; | |
| proxy_pass http://127.0.0.1:9644; | |
| proxy_set_header Host $host; | |
| } | |
| # ββ Health check βββββββββββββββββββββββββββββββββ | |
| location /health { | |
| return 200 'ok'; | |
| add_header Content-Type text/plain; | |
| } | |
| # ββ Root β redirect to UI βββββββββββββββββββββββββ | |
| location = / { | |
| return 301 /ui/; | |
| } | |
| } | |
| } |