Allow AdGuard Home to read ACME certificates via ReadOnlyPaths
This commit is contained in:
parent
deedd00762
commit
c51c7183c1
1 changed files with 2 additions and 1 deletions
|
|
@ -141,7 +141,8 @@ in
|
||||||
systemd.services.adguardhome = {
|
systemd.services.adguardhome = {
|
||||||
requires = [ "acme-${cfg.domain}.service" ];
|
requires = [ "acme-${cfg.domain}.service" ];
|
||||||
after = [ "acme-${cfg.domain}.service" ];
|
after = [ "acme-${cfg.domain}.service" ];
|
||||||
serviceConfig.SupplementaryGroups = [ "acme" ];
|
serviceConfig.SupplementaryGroups = [ "acme" "nginx" ];
|
||||||
|
serviceConfig.ReadOnlyPaths = [ "/var/lib/acme/${cfg.domain}" ];
|
||||||
serviceConfig.SystemCallFilter = lib.mkForce []; # Allow yq-go to run its syscalls
|
serviceConfig.SystemCallFilter = lib.mkForce []; # Allow yq-go to run its syscalls
|
||||||
preStart = lib.mkAfter ''
|
preStart = lib.mkAfter ''
|
||||||
if [ -f /var/lib/private/AdGuardHome/AdGuardHome.yaml ]; then
|
if [ -f /var/lib/private/AdGuardHome/AdGuardHome.yaml ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue