Example nginx config for reverse proxy does pass nginx -t
3cogito opened this issue · comments
3cogito commented
Reason, proxy pass cannot end with trailing /
and therefore must be removed.
e.g. proxy_pass http://localhost:3000/;
should be proxy_pass http://localhost:3000;
See below
# this is required to proxy Grafana Live WebSocket connections.
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
listen 80;
root /usr/share/nginx/www;
index index.html index.htm;
location ~/grafana/ {
proxy_pass http://localhost:3000/;
}
# Proxy Grafana Live WebSocket connections.
location ~/grafana/api/live {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_set_header Host $http_host;
proxy_pass http://localhost:3000/;
}
}
matt abrams commented
resolved ❤️