wger: removed hardcoded constants

This commit is contained in:
eyjhb 2024-12-03 22:08:25 +01:00
parent 913a4a0b26
commit 5da6057228
No known key found for this signature in database
GPG key ID: 609F508E3239F920

View file

@ -8,15 +8,8 @@ let
wgerpkgs = pkgs.callPackage ./wgerpkg/default.nix {};
# # Application settings
# WGER_SETTINGS['EMAIL_FROM'] = 'wger Workout Manager <wger@example.com>'
# 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 <wger@fricloud.dk>";
EMAIL_FROM = "wger Workout Manager <wger@${config.mine.shared.settings.domain}>";
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/";