Nginx Proxy
Nginx Proxy other nginx which is in docker container
server {
server_name harbor.kafana.dev;
listen 80;
location / {
proxy_pass http://nginx:8080;
}
}
server {
server_name harbor.kafana.dev;
listen 443;
location / {
proxy_pass https://nginx:8443;
client_max_body_size 25G;
}
}
Nginx Proxy Pass With Location
server {
listen 8080;
location /webapp/ {
proxy_pass http://172.10.50.110:5000/api/;
nginx serve content on domain/path
location ^~ /rabbitmq/ {
proxy_pass http://rabbitmq-web.default.svc.cluster.local:15672/;
}