grafana provisioning

convert grafana dashboard to nix native

remove grafana yml file
This commit is contained in:
Noah Masur 2023-08-04 20:08:37 -04:00
parent 20e5d7fef5
commit 21794891e7
3 changed files with 2158 additions and 8 deletions

View File

@ -30,7 +30,8 @@ in {
match = [{ host = [ config.hostnames.books ]; }];
handle = [{
handler = "reverse_proxy";
upstreams = [{ dial = "localhost:8083"; }];
upstreams =
[{ dial = "localhost:${config.services.calibre-web.listen.port}"; }];
headers.request.add."X-Script-Name" = [ "/calibre-web" ];
}];
}];

File diff suppressed because it is too large Load Diff

View File

@ -39,7 +39,11 @@ in {
match = [{ host = [ config.hostnames.secrets ]; }];
handle = [{
handler = "reverse_proxy";
upstreams = [{ dial = "localhost:8222"; }];
upstreams = [{
dial = "localhost:${
builtins.toString config.services.vaultwarden.config.ROCKET_PORT
}";
}];
headers.request.add."X-Real-IP" = [ "{http.request.remote.host}" ];
}];
}];