Update spaceapid

Also set StateDirectory in the systemd service to persist state.
This commit is contained in:
June 2023-11-10 21:56:25 +01:00
parent 9e0b6b7f23
commit 25cab7982b

View file

@ -4,7 +4,7 @@ let
spaceapidSrc = builtins.fetchGit {
url = "https://gitlab.hamburg.ccc.de/ccchh/spaceapid.git";
ref = "main";
rev = "ec8e279b7a1ad203919f8af9c8cac84257c8d8b6";
rev = "baf73f33e7e8ef763869a1677ebf5cd2f334d897";
};
spaceapid = pkgs-unstable.buildGoModule {
pname = "spaceapid";
@ -36,8 +36,9 @@ in
User = "spaceapi";
Group = "spaceapi";
Restart = "on-failure";
Environment = "DOORIS_USERNAME=dooris SPACE_API_JSON_TEMPLATE_PATH=${spaceapidSrc}/ccchh-template.json";
Environment = "BA_USERNAME=dooris JSON_TEMPLATE_PATH=${spaceapidSrc}/ccchh-template.json";
EnvironmentFile = "/secrets/spaceapid-environment-secrets.secret";
StateDirectory = "spaceapid";
};
wantedBy = [ "multi-user.target" ];
};