Adding autorestart for stirling

merge-requests/81/merge
Lyes Saadi 2026-07-31 17:09:52 +02:00
parent 5db5253d03
commit 8040cdfe2e
No known key found for this signature in database
GPG Key ID: 55A1D803917CF39A
1 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
imagemagick # Pour la compression des PDFs imagemagick # Pour la compression des PDFs
]; ];
services.stirling-pdf = { services.stirling-pdf = {
enable = true; enable = true;
environment = { environment = {
@ -17,6 +18,11 @@
}; };
}; };
systemd.services.stirling-pdf.serviceConfig = {
Restart = "always";
RestartSec = "5s";
};
services.nginx = { services.nginx = {
enable = true; enable = true;