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