wger: stay on debug, otherwise weird stuff happens

This commit is contained in:
eyjhb 2024-12-03 22:45:55 +01:00
parent 5da6057228
commit 02b66db30a
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -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";
};