
Tengo grafana y jenkins ejecutándose en la misma máquina virtual azul. Para jenkins: http://localhost:8080 Para grafana: http://localhost:3000
Pensé en configurar nginx de esa manera. customdomain.com/grafana debe ir a http://localhost:3000 customdomain.com/jenkins o customdomain.com debe ir a http://localhost:8080
Pero incluso /grafana sólo va a jenkins.
¿Cómo arreglar eso?
El archivo de configuración predeterminado para mapear en nginx.
location /grafana {
include /etc/nginx/proxy_params;
proxy_pass http://localhost:3000;
proxy_read_timeout 60s;
# Fix the "It appears that your reverse proxy set up is broken" error.
# Make sure the domain name is correct
#proxy_redirect http://localhost:3000 https://customdomain.com;
}
location / {
include /etc/nginx/proxy_params;
proxy_pass http://localhost:8080;
proxy_read_timeout 60s;
# Fix the "It appears that your reverse proxy set up is broken" error.
# Make sure the domain name is correct
proxy_redirect http://localhost:8080 https://customdomain.com;
}