Create nginx.conf
Browse files- nginx.conf +39 -0
nginx.conf
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
events {}
|
| 2 |
+
|
| 3 |
+
http {
|
| 4 |
+
server {
|
| 5 |
+
listen 7860;
|
| 6 |
+
|
| 7 |
+
# Redpanda Console UI → root
|
| 8 |
+
location / {
|
| 9 |
+
proxy_pass http://localhost:8080;
|
| 10 |
+
proxy_set_header Host $host;
|
| 11 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 12 |
+
}
|
| 13 |
+
|
| 14 |
+
# Pandaproxy — Kafka over REST
|
| 15 |
+
location /kafka/ {
|
| 16 |
+
rewrite ^/kafka/(.*) /$1 break;
|
| 17 |
+
proxy_pass http://localhost:8082;
|
| 18 |
+
proxy_set_header Host $host;
|
| 19 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 20 |
+
proxy_read_timeout 300s;
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
# Schema Registry
|
| 24 |
+
location /schema/ {
|
| 25 |
+
rewrite ^/schema/(.*) /$1 break;
|
| 26 |
+
proxy_pass http://localhost:8081;
|
| 27 |
+
proxy_set_header Host $host;
|
| 28 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
# Admin API
|
| 32 |
+
location /admin/ {
|
| 33 |
+
rewrite ^/admin/(.*) /$1 break;
|
| 34 |
+
proxy_pass http://localhost:9644;
|
| 35 |
+
proxy_set_header Host $host;
|
| 36 |
+
proxy_set_header X-Real-IP $remote_addr;
|
| 37 |
+
}
|
| 38 |
+
}
|
| 39 |
+
}
|