nixos-config/nixos/programs/acme.nix
2023-10-17 00:47:19 +05:00

31 lines
871 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ config, ... }:
{
# Настройки сервиса для получения wildcard сертификатов.
# В /var/lib/secrets/certs.txt находится логин и пароль от reg.ru.
# REGRU_USERNAME=xxx
# REGRU_PASSWORD=xxx
security.acme = {
acceptTerms = true;
defaults.email = "ordinarydev@protonmail.com";
certs = {
"comfycamp.space" = {
dnsProvider = "regru";
domain = "comfycamp.space";
extraDomainNames = [ "*.comfycamp.space" ];
dnsPropagationCheck = true;
credentialsFile = "/var/lib/secrets/certs.txt";
};
"0ch.space" = {
dnsProvider = "cloudflare";
domain = "0ch.space";
extraDomainNames = [ "*.0ch.space" ];
dnsPropagationCheck = true;
credentialsFile = "/var/lib/secrets/cloudflare.txt";
};
};
};
}