alerts.pub.solar: use DNS challenge for cert
Some checks failed
Flake checks / Check (pull_request) Failing after 1m30s

This commit is contained in:
teutat3s 2024-09-10 14:27:35 +02:00
parent 6a235fa0d8
commit 9cbd60a80b
Signed by: teutat3s
GPG key ID: 4FA1D3FA524F22C1

View file

@ -12,6 +12,15 @@
owner = "alertmanager"; 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}" = { services.nginx.virtualHosts."alerts.${config.pub-solar-os.networking.domain}" = {
enableACME = true; enableACME = true;
forceSSL = true; forceSSL = true;