1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 19:17:45 +00:00

fix: fix grafana headers

This commit is contained in:
RGBCube 2025-02-23 20:37:20 +03:00
parent f3e93ee63e
commit d1dc2a3984
2 changed files with 7 additions and 8 deletions

View file

@ -69,14 +69,13 @@ in {
};
services.nginx.virtualHosts.${fqdn} = merge config.services.nginx.sslTemplate {
extraConfig = /* nginx */ ''
# Grafana sets `nosniff` while not setting the content type properly,
# so everything breaks with it. Unset the header.
${config.services.nginx.headers}
add_header X-Content-Type-Options "" always;
'';
locations."/" = {
extraConfig = /* nginx */ ''
# Grafana sets `nosniff` while not setting the content type properly,
# so everything breaks with it. Unset the header.
proxy_hide_header X-Content-Type-Options;
'';
proxyPass = "http://[::1]:${toString port}";
proxyWebsockets = true;
};