Add reverseproxy for alerts.pub.solar
Some checks failed
Flake checks / Check (pull_request) Failing after 1m27s

Co-authored-by: teutat3s <teutat3s@noreply.git.pub.solar>
This commit is contained in:
Pablo Ovelleiro Corral 2024-04-27 01:37:03 +02:00 committed by teutat3s
parent 635ea80325
commit 502e118ca6
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -12,6 +12,15 @@
owner = "prometheus";
};
services.caddy.virtualHosts."prometheus.${config.pub-solar-os.networking.domain}" = {
logFormat = lib.mkForce ''
output discard
'';
extraConfig = ''
reverse_proxy :${toString config.services.prometheus.alertmanager.port}
'';
};
services.prometheus = {
enable = true;
port = 9001;