lets try this
This commit is contained in:
parent
c9015f6879
commit
7d7e2eec37
1 changed files with 1 additions and 12 deletions
|
|
@ -35,18 +35,7 @@
|
|||
];
|
||||
|
||||
systemd.services.caddy.serviceConfig = {
|
||||
LoadCredential = "CLOUDFLARE_API_TOKEN:${config.age.secrets.cloudflare.path}";
|
||||
EnvironmentFile = "-%t/caddy/secrets.env";
|
||||
RuntimeDirectory = "caddy";
|
||||
ExecStartPre = [
|
||||
((pkgs.writeShellApplication {
|
||||
name = "caddy-secrets";
|
||||
text = "echo \"CLOUDFLARE_API_TOKEN=\\\"$(<\"$CREDENTIALS_DIRECTORY/CLOUDFLARE_API_TOKEN\")\\\"\" > \"$RUNTIME_DIRECTORY/secrets.env\"";
|
||||
})
|
||||
+ "/bin/caddy-secrets")
|
||||
];
|
||||
AmbientCapabilities = "cap_net_bind_service";
|
||||
CapabilityBoundingSet = "cap_net_bind_service";
|
||||
EnvironmentFile = "/etc/caddy/.env";
|
||||
};
|
||||
})
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue