Let's change those in nginx too

This commit is contained in:
Lillian Violet 2024-03-26 14:40:05 +01:00
parent 2c33f7d069
commit 9dacc2172e

View file

@ -32,13 +32,13 @@
}; };
# nginx reverse proxy # nginx reverse proxy
services.nginx.virtualHosts.${config.services.grafana.domain} = { services.nginx.virtualHosts.${config.services.grafana.settings.server.domain} = {
## Force HTTP redirect to HTTPS ## Force HTTP redirect to HTTPS
forceSSL = true; forceSSL = true;
## LetsEncrypt ## LetsEncrypt
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
proxyPass = "http://127.0.0.1:${toString config.services.grafana.port}"; proxyPass = "http://127.0.0.1:${toString config.services.grafana.settings.server.port}";
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };