This should fix it I hope
parent
31adf4f3a6
commit
4e543200f4
|
@ -1 +1,2 @@
|
||||||
*.qcow2
|
*.qcow2
|
||||||
|
/result
|
||||||
|
|
|
@ -39,24 +39,27 @@
|
||||||
sops.secrets = {
|
sops.secrets = {
|
||||||
"traefik/acmeEmail" = {
|
"traefik/acmeEmail" = {
|
||||||
owner = "traefik";
|
owner = "traefik";
|
||||||
# format = "dotenv";
|
|
||||||
};
|
};
|
||||||
"traefik/CLOUDFLARE_EMAIL" = {
|
"traefik/CLOUDFLARE_EMAIL" = {
|
||||||
owner = "traefik";
|
owner = "traefik";
|
||||||
# format = "dotenv";
|
|
||||||
};
|
};
|
||||||
"traefik/CLOUDFLARE_DNS_API_TOKEN" = {
|
"traefik/CLOUDFLARE_DNS_API_TOKEN" = {
|
||||||
owner = "traefik";
|
owner = "traefik";
|
||||||
# format = "dotenv";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
sops.templates."traefik.env" = {
|
||||||
|
owner = "traefik";
|
||||||
|
content = ''
|
||||||
|
acmeEmail="${config.sops.placeholder."traefik/acmeEmail"}"
|
||||||
|
CLOUDFLARE_EMAIL="${config.sops.placeholder."traefik/CLOUDFLARE_EMAIL"}"
|
||||||
|
CLOUDFLARE_DNS_API_TOKEN="${config.sops.placeholder."traefik/CLOUDFLARE_DNS_API_TOKEN"}"
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
services.traefik = {
|
services.traefik = {
|
||||||
enable = true;
|
enable = true;
|
||||||
environmentFiles = [
|
environmentFiles = [
|
||||||
config.sops.secrets."traefik/acmeEmail".path
|
config.sops.templates."traefik.env".path
|
||||||
config.sops.secrets."traefik/CLOUDFLARE_EMAIL".path
|
|
||||||
config.sops.secrets."traefik/CLOUDFLARE_DNS_API_TOKEN".path
|
|
||||||
];
|
];
|
||||||
|
|
||||||
staticConfigOptions = {
|
staticConfigOptions = {
|
||||||
|
|
Loading…
Reference in New Issue