diff --git a/machines/gerd/services/wger/default.nix b/machines/gerd/services/wger/default.nix index afe2ffa..cbc6965 100644 --- a/machines/gerd/services/wger/default.nix +++ b/machines/gerd/services/wger/default.nix @@ -18,7 +18,11 @@ let }; django_settings = rec { - DEBUG = false; + # enable debug for now, otherwise it tries + # to create a CACHE folder/file in the CWD. + # and if I fix that, then static content no + # longer wants to load. + DEBUG = true; DATABASES.default = { ENGINE = "django.db.backends.postgresql"; NAME = "wger"; @@ -101,6 +105,10 @@ in { serviceConfig = { EnvironmentFile = config.age.secrets.wger-env.path; + # ensure it does not try to create `/CACHE` + PrivateTmp = "yes"; + WorkingDirectory = "/tmp"; + User = "wger"; Group = "wger"; };