dns challenge

This commit is contained in:
Sakooooo 2025-01-01 02:34:23 +04:00
parent 4dbf6b8866
commit 6895b9357e
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -12,7 +12,11 @@ in {
defaults.server = defaults.server =
"https://acme-staging-v02.api.letsencrypt.org/directory"; "https://acme-staging-v02.api.letsencrypt.org/directory";
defaults.group = config.services.nginx.group; defaults.group = config.services.nginx.group;
defaults.webroot = "/var/lib/acme/acme-challenge"; defaults.credentialsFile = {
"PORKBUN_API_KEY" = "/srv/secrets/porkbun-api";
"PORKBUN_SECRET_API_KEY" = "/srv/secrets/porkbun-secret-api";
};
defaults.dnsProvider = "porkbun";
}; };
services.nginx = { services.nginx = {
enable = true; enable = true;
@ -26,7 +30,8 @@ in {
commonHttpConfig = '' commonHttpConfig = ''
access_log /var/log/nginx/access.log combined buffer=32k flush=5m; access_log /var/log/nginx/access.log combined buffer=32k flush=5m;
error_log /var/log/nginx/error.log warn; error_log /var/log/nginx/error.log warn;
''; '';
}; };