From 5da60572288f18911ea2d9589bb89c6af9268922 Mon Sep 17 00:00:00 2001 From: eyjhb Date: Tue, 3 Dec 2024 22:08:25 +0100 Subject: [PATCH] wger: removed hardcoded constants --- machines/gerd/services/wger/default.nix | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/machines/gerd/services/wger/default.nix b/machines/gerd/services/wger/default.nix index 2cfb71b..afe2ffa 100644 --- a/machines/gerd/services/wger/default.nix +++ b/machines/gerd/services/wger/default.nix @@ -8,15 +8,8 @@ let wgerpkgs = pkgs.callPackage ./wgerpkg/default.nix {}; -# # Application settings -# WGER_SETTINGS['EMAIL_FROM'] = 'wger Workout Manager ' -# WGER_SETTINGS["ALLOW_REGISTRATION"] = True -# WGER_SETTINGS["ALLOW_GUEST_USERS"] = True -# WGER_SETTINGS["ALLOW_UPLOAD_VIDEOS"] = False -# WGER_SETTINGS["MIN_ACCOUNT_AGE_TO_TRUST"] = 21 # in days -# WGER_SETTINGS["EXERCISE_CACHE_TTL"] = 3600 # in seconds wger_settings = { - EMAIL_FROM = "wger Workout Manager "; + EMAIL_FROM = "wger Workout Manager "; ALLOW_REGISTRATION = true; ALLOW_GUEST_USERS = true; ALLOW_UPLOAD_VIDEOS = false; @@ -25,7 +18,7 @@ let }; django_settings = rec { - DEBUG = true; + DEBUG = false; DATABASES.default = { ENGINE = "django.db.backends.postgresql"; NAME = "wger"; @@ -35,7 +28,7 @@ let PORT = ""; }; - ADMINS = [["eyjhb" "eyjhb@fricloud.dk"]]; + ADMINS = [["admin" "admin@${config.mine.shared.settings.domain}"]]; MANAGERS = ADMINS; TIME_ZONE = "Europe/Copenhagen"; @@ -43,7 +36,6 @@ let SECRET_KEY = "$SECRET_KEY"; SITE_URL = "https://${svc_domain}"; - MEDIA_ROOT = "${statedir}/media"; MEDIA_URL = "/media/";