Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nginx refused to boot when a hostname was invalid #102

Merged
merged 3 commits into from
May 22, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions loadbalancer/templates/nginx.conf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,6 @@ http {
server ${INTERNAL_DOMAIN}:5117;
}

upstream grafana {
server monitoring_grafana:3000;
}

server {
listen 80 default_server;
server_name ${TEST_DOMAIN};
Expand Down Expand Up @@ -154,15 +150,19 @@ http {
}

location /grafana/ {
proxy_pass http://grafana;
resolver 127.0.0.11;
set $upstream http://monitoring_grafana:3000;
proxy_pass $upstream;
}

# Proxy Grafana Live WebSocket connections.
location /grafana/api/live/ {
resolver 127.0.0.11;
set $upstream http://monitoring_grafana:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://grafana;
proxy_pass $upstream;
}
}
}