1
0
Fork 0

remove extra header for grafana that is set later automatically

This prevented us to access grafana at all through nginx.
This commit is contained in:
ibizaman 2023-08-13 16:11:23 -07:00
parent 322934c19e
commit da42bbaa7b

View file

@ -82,10 +82,7 @@ in
sslCertificate = "/var/lib/acme/${cfg.domain}/cert.pem";
sslCertificateKey = "/var/lib/acme/${cfg.domain}/key.pem";
locations."/" = {
extraConfig = ''
proxy_set_header Host $host;
'';
proxyPass = "http://${toString config.services.grafana.settings.server.http_addr}:${toString config.services.grafana.settings.server.http_port}/";
proxyPass = "http://${toString config.services.grafana.settings.server.http_addr}:${toString config.services.grafana.settings.server.http_port}";
proxyWebsockets = true;
};
};