Skip to content

Commit

Permalink
Merge pull request #252 from SupercedeTech/always-restart-keter
Browse files Browse the repository at this point in the history
change nix config to always restart keter
  • Loading branch information
jappeace authored Apr 21, 2022
2 parents 13c9550 + e83ae18 commit a06b750
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

+ Update status code of missing host responses.
They now emit a 502 on missing host, and 404 on host not found
+ Always restart keter in the nix config for systemd.
It turns out that keter may exit with exit code 0 under load testing.
Changing from on-failure to always in systemd should bring it back up.
+ Squash proxy exceptions if they occur and serve a default or custom error
response.
Emits the exception to the log.
Expand Down
5 changes: 4 additions & 1 deletion nix/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ in {
'';
wantedBy = [ "multi-user.target" "nginx.service" ];

serviceConfig = { Restart = "on-failure"; };
serviceConfig = {
Restart="always";
RestartSec="10s";
};

after = [
"network.target"
Expand Down

0 comments on commit a06b750

Please sign in to comment.