services: nginx: Ensure network is up before starting

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-10-28 17:27:29 +02:00
parent 86f3742d75
commit 02a6723b56
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A

View file

@ -24,4 +24,9 @@
reloadServices = [ "nginx" ];
environmentFile = "/var/secrets/hetzner-acme";
};
systemd.services.nginx = {
after = [ "network-online.target" ];
wants = [ "network-online.target" ];
};
}