traefik: add EnvironmentFile as a list
This commit is contained in:
parent
14894d7280
commit
762a5c0fc3
1 changed files with 4 additions and 1 deletions
|
@ -1,10 +1,13 @@
|
||||||
_: {
|
{config, ...}: {
|
||||||
sops.secrets.cloudflare-api-key = {};
|
sops.secrets.cloudflare-api-key = {};
|
||||||
networking.firewall.allowedTCPPorts = [80 443];
|
networking.firewall.allowedTCPPorts = [80 443];
|
||||||
systemd.services.traefik = {
|
systemd.services.traefik = {
|
||||||
environment = {
|
environment = {
|
||||||
CLOUDFLARE_EMAIL = "jch0tm2e@notohh.dev";
|
CLOUDFLARE_EMAIL = "jch0tm2e@notohh.dev";
|
||||||
};
|
};
|
||||||
|
serviceConfig = {
|
||||||
|
EnvironmentFile = [config.sops.secrets.cloudflare-api-key.path];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
services.traefik = {
|
services.traefik = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue