traefik: add EnvironmentFile as a list

This commit is contained in:
notohh 2023-06-11 18:19:51 -04:00
parent 14894d7280
commit 762a5c0fc3
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -1,10 +1,13 @@
_: {
{config, ...}: {
sops.secrets.cloudflare-api-key = {};
networking.firewall.allowedTCPPorts = [80 443];
systemd.services.traefik = {
environment = {
CLOUDFLARE_EMAIL = "jch0tm2e@notohh.dev";
};
serviceConfig = {
EnvironmentFile = [config.sops.secrets.cloudflare-api-key.path];
};
};
services.traefik = {
enable = true;