add nginx.conf and improve readme

This commit is contained in:
2025-03-27 19:21:59 +01:00
parent 119196a1cc
commit 52489241d7
16 changed files with 162 additions and 4 deletions

22
grafana/nginx.conf Normal file
View File

@ -0,0 +1,22 @@
map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}
server {
server_name sudomain.your.domain;
location / {
proxy_pass http://localhost:3000/;
}
# Proxy Grafana Live WebSocket connections.
location /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:3002/;
}
listen 80;
}