infra/hosts/monitoring/nginx.nix
2026-02-17 19:30:37 +01:00

20 lines
426 B
Nix
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, ... }:
{
services.nginx.virtualHosts."monitoring.${config.networking.domain}" = {
default = true;
quic = true;
kTLS = true;
forceSSL = true;
enableACME = true;
locations = {
"/" = {
basicAuthFile = config.age.secrets.grafana_basic_auth.path;
#proxyPass = "http://";
#recommendedProxySettings = true;
return = "418 \"\"";
};
};
};
}