File size: 1,898 Bytes
0d980df f90ce94 0d980df f90ce94 0d980df f90ce94 0d980df f90ce94 0d980df f90ce94 0d980df f90ce94 0d980df f90ce94 0d980df f90ce94 0d980df f90ce94 0d980df f90ce94 0d980df f90ce94 0d980df f90ce94 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | 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/;
}
}
} |