add auto restart
This commit is contained in:
parent
7debbcac00
commit
7896091428
2 changed files with 5 additions and 3 deletions
|
|
@ -22,7 +22,7 @@
|
|||
"github.com/ggicci/caddy-jwt@v1.1.0"
|
||||
"pkg.jsn.cam/caddy-defender@v0.9.0"
|
||||
];
|
||||
hash = "sha256-2FDvTpK608UrnOXvjzC7S2gtxf9HUOE9Mw2/E6YzBi0=";
|
||||
hash = "sha256-HbVHQb97MQwaoXwf1EP0fr+4yKuZC6nTicvxw6JZAkY=";
|
||||
};
|
||||
|
||||
virtualHosts = lib.mapAttrs (domain: host: {
|
||||
|
|
|
|||
|
|
@ -12,14 +12,16 @@
|
|||
settings = lib.mkOption {
|
||||
type = lib.types.submodule {
|
||||
freeformType = (pkgs.formats.toml { }).type;
|
||||
|
||||
};
|
||||
default = { };
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
systemd.services.continuwuity.serviceConfig.Restart = lib.mkForce "always";
|
||||
systemd.services.continuwuity.serviceConfig = {
|
||||
Restart = lib.mkForce "always";
|
||||
RuntimeMaxSec = "1d";
|
||||
};
|
||||
services =
|
||||
let
|
||||
subdomain = "matrix.${config.quad.matrix.domain}";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue