Give traefik a writeable persistent directory for ACME
parent
2c6f2b0030
commit
8b0483d0df
|
@ -36,6 +36,19 @@
|
|||
) (builtins.attrNames hosts);
|
||||
in
|
||||
{
|
||||
|
||||
environment.persistence."/persistent" = {
|
||||
directories = [
|
||||
"/etc/traefik"
|
||||
{
|
||||
directory = "/etc/traefik";
|
||||
user = "traefik";
|
||||
group = "root";
|
||||
mode = "u=rwx,g=,o=";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
sops.secrets = {
|
||||
"traefik/acmeEmail" = {
|
||||
owner = "traefik";
|
||||
|
@ -94,7 +107,7 @@
|
|||
letsencrypt = {
|
||||
acme = {
|
||||
email = "$acmeEmail";
|
||||
storage = "acme.json";
|
||||
storage = "/etc/traefik/acme.json";
|
||||
dnsChallenge = {
|
||||
provider = "cloudflare";
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue