Auto restart services on OOM
This commit is contained in:
parent
e39ff5c046
commit
80b9e756d5
8 changed files with 30 additions and 7 deletions
|
@ -5,6 +5,7 @@
|
|||
...
|
||||
}: {
|
||||
config = {
|
||||
systemd.services.caddy.serviceConfig.Restart = lib.mkForce "always";
|
||||
networking.firewall.allowedTCPPorts = [443];
|
||||
services.caddy = {
|
||||
enable = true;
|
||||
|
|
|
@ -1,8 +1,14 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
config,
|
||||
...
|
||||
}: {
|
||||
systemd.services = {
|
||||
livekit.serviceConfig.Restart = lib.mkForce "always";
|
||||
lk-jwt-service.serviceConfig.Restart = lib.mkForce "always";
|
||||
};
|
||||
|
||||
services = let
|
||||
domain = "call.federated.nexus";
|
||||
in {
|
||||
|
|
|
@ -9,7 +9,15 @@
|
|||
in {
|
||||
imports = [inputs.lasuite-docs-proxy.nixosModules.default];
|
||||
|
||||
systemd.services.lasuite-docs-collaboration-server.serviceConfig.EnvironmentFile = cfg.environmentFile;
|
||||
systemd.services = {
|
||||
lasuite-docs-collaboration-server.serviceConfig = {
|
||||
EnvironmentFile = cfg.environmentFile;
|
||||
Restart = "always";
|
||||
};
|
||||
|
||||
lasuite-docs-celery.serviceConfig.Restart = "always";
|
||||
lasuite-docs.serviceConfig.Restart = "always";
|
||||
};
|
||||
|
||||
services = let
|
||||
proxySocket = "/var/run/lasuite-docs-proxy/socket";
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{
|
||||
lib,
|
||||
pkgs,
|
||||
inputs,
|
||||
config,
|
||||
|
@ -67,4 +68,6 @@ in {
|
|||
|
||||
caddy.virtualHosts."${domain}".extraConfig = "reverse_proxy 127.0.0.1:${config.services.matrix-ooye.socket}";
|
||||
};
|
||||
|
||||
systemd.services.matrix-ooye.serviceConfig.Restart = lib.mkForce "always";
|
||||
}
|
||||
|
|
|
@ -1,7 +1,13 @@
|
|||
{inputs, ...}: {
|
||||
{
|
||||
inputs,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
imports = [inputs.grapevine.nixosModules.default];
|
||||
networking.firewall.allowedTCPPorts = [8448];
|
||||
|
||||
systemd.services.grapevine.serviceConfig.Restart = lib.mkForce "always";
|
||||
|
||||
services = let
|
||||
domain = "federated.nexus";
|
||||
subdomain = "matrix.${domain}";
|
||||
|
|
|
@ -9,4 +9,6 @@
|
|||
|
||||
caddy.authedHosts."redlib.federated.nexus" = with config.services.redlib; "reverse_proxy ${address}:${toString port}";
|
||||
};
|
||||
|
||||
systemd.services.redlib.serviceConfig.Restart = "always";
|
||||
}
|
||||
|
|
|
@ -109,7 +109,7 @@
|
|||
UMask = "007";
|
||||
};
|
||||
in {
|
||||
searx.serviceConfig = commonConfig;
|
||||
searx.serviceConfig = commonConfig // {Restart = "always";};
|
||||
searx-init.serviceConfig = commonConfig;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue