From 25cab7982b2de22dd9b0536e0bbdab3120db567e Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 10 Nov 2023 21:56:25 +0100 Subject: [PATCH] Update spaceapid Also set StateDirectory in the systemd service to persist state. --- config/hosts/public-web-static/spaceapid.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/hosts/public-web-static/spaceapid.nix b/config/hosts/public-web-static/spaceapid.nix index 15bfc9d..cb752c7 100644 --- a/config/hosts/public-web-static/spaceapid.nix +++ b/config/hosts/public-web-static/spaceapid.nix @@ -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" ]; };