waffentrager: add restart to nginx

This commit is contained in:
Mateusz Słodkowicz 2024-04-11 18:43:38 +02:00
parent b2d466a450
commit 80e17cc9f4
Signed by: materus
GPG Key ID: 28D140BCA60B4FD1
2 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,7 @@
where = "/var/lib/mnt_acme"; where = "/var/lib/mnt_acme";
type = "fuse.sshfs"; type = "fuse.sshfs";
options = "reconnect,gid=${builtins.toString config.ids.gids.nginx},_netdev,rw,nosuid,allow_other,default_permissions,follow_symlinks,idmap=user,compression=yes,identityfile=/materus/root/ssh_host_ed25519_key"; options = "reconnect,gid=${builtins.toString config.ids.gids.nginx},_netdev,rw,nosuid,allow_other,default_permissions,follow_symlinks,idmap=user,compression=yes,identityfile=/materus/root/ssh_host_ed25519_key";
wantedBy = [ "multi-user.target" ];
}]; }];
}; };
} }

View File

@ -19,6 +19,10 @@
systemd.services.nginx = { systemd.services.nginx = {
requires = [ "var-lib-mnt_acme.mount" ]; requires = [ "var-lib-mnt_acme.mount" ];
after = [ "var-lib-mnt_acme.mount" ]; after = [ "var-lib-mnt_acme.mount" ];
serviceConfig = {
restart = "always";
restartSec = 60;
};
}; };
}; };