store gatus database persistently in sqlite
This commit is contained in:
parent
0c16dda4d0
commit
2f608a764a
1 changed files with 12 additions and 0 deletions
|
@ -59,6 +59,11 @@ in
|
|||
settings = {
|
||||
web.port = 4242;
|
||||
|
||||
storage = {
|
||||
type = "sqlite";
|
||||
path = "/srv/gatus/gatus.db";
|
||||
};
|
||||
|
||||
alerting.email = {
|
||||
from = "gatus@kun.is";
|
||||
host = "mail.smtp2go.com";
|
||||
|
@ -75,5 +80,12 @@ in
|
|||
};
|
||||
};
|
||||
};
|
||||
|
||||
system.activationScripts = lib.mkIf cfg.server.enable {
|
||||
gatus = ''
|
||||
mkdir -p /srv/gatus
|
||||
chown gatus:gatus /srv/gatus
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue