From 80e17cc9f412142e962dceab142f643d949eb3bc Mon Sep 17 00:00:00 2001 From: materus Date: Thu, 11 Apr 2024 18:43:38 +0200 Subject: [PATCH] waffentrager: add restart to nginx --- configurations/host/waffentrager/services/mount-acme.nix | 1 + configurations/host/waffentrager/services/nginx.nix | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/configurations/host/waffentrager/services/mount-acme.nix b/configurations/host/waffentrager/services/mount-acme.nix index 34161d6..ecebb40 100644 --- a/configurations/host/waffentrager/services/mount-acme.nix +++ b/configurations/host/waffentrager/services/mount-acme.nix @@ -14,6 +14,7 @@ where = "/var/lib/mnt_acme"; 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"; + wantedBy = [ "multi-user.target" ]; }]; }; } diff --git a/configurations/host/waffentrager/services/nginx.nix b/configurations/host/waffentrager/services/nginx.nix index c1a4e15..94b02f9 100644 --- a/configurations/host/waffentrager/services/nginx.nix +++ b/configurations/host/waffentrager/services/nginx.nix @@ -19,6 +19,10 @@ systemd.services.nginx = { requires = [ "var-lib-mnt_acme.mount" ]; after = [ "var-lib-mnt_acme.mount" ]; + serviceConfig = { + restart = "always"; + restartSec = 60; + }; }; };