Skip to content

Commit

Permalink
Merge pull request #96 from serokell/sereja/OPS-1402-restart-policy
Browse files Browse the repository at this point in the history
[OPS-1402] Add systemd unit restart policy
  • Loading branch information
Sereja313 authored Jan 17, 2024
2 parents a5122e1 + f882147 commit 2d91373
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/cors-proxy.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ in {
script = ''
${cfg.package}/bin/@isomorphic-git/cors-proxy start
'';
startLimitBurst = 5;
startLimitIntervalSec = 300;
serviceConfig = {
Restart = "on-failure";
RestartSec = 10;
};
environment = {
PORT = toString cfg.port;
ALLOW_ORIGIN = cfg.allowOrigin;
Expand Down

0 comments on commit 2d91373

Please sign in to comment.