Add reverseproxy for alerts.pub.solar

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 2679b897a0
commit 11f5557a7a
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -12,6 +12,15 @@
owner = "prometheus"; 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 = { services.prometheus = {
enable = true; enable = true;
port = 9001; port = 9001;