alerts.pub.solar: use DNS challenge for cert

This commit is contained in:
teutat3s 2024-09-10 14:27:35 +02:00
parent faa71b7797
commit 63fa03e971
Signed by untrusted user: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -12,6 +12,15 @@
owner = "alertmanager";
};
security.acme.certs = {
"alerts.${config.pub-solar-os.networking.domain}" = {
# disable http challenge
webroot = null;
# enable dns challenge
dnsProvider = "namecheap";
};
};
services.nginx.virtualHosts."alerts.${config.pub-solar-os.networking.domain}" = {
enableACME = true;
forceSSL = true;