wger: removed hardcoded constants
This commit is contained in:
parent
913a4a0b26
commit
5da6057228
1 changed files with 3 additions and 11 deletions
|
@ -8,15 +8,8 @@ let
|
||||||
|
|
||||||
wgerpkgs = pkgs.callPackage ./wgerpkg/default.nix {};
|
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 = {
|
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_REGISTRATION = true;
|
||||||
ALLOW_GUEST_USERS = true;
|
ALLOW_GUEST_USERS = true;
|
||||||
ALLOW_UPLOAD_VIDEOS = false;
|
ALLOW_UPLOAD_VIDEOS = false;
|
||||||
|
@ -25,7 +18,7 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
django_settings = rec {
|
django_settings = rec {
|
||||||
DEBUG = true;
|
DEBUG = false;
|
||||||
DATABASES.default = {
|
DATABASES.default = {
|
||||||
ENGINE = "django.db.backends.postgresql";
|
ENGINE = "django.db.backends.postgresql";
|
||||||
NAME = "wger";
|
NAME = "wger";
|
||||||
|
@ -35,7 +28,7 @@ let
|
||||||
PORT = "";
|
PORT = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
ADMINS = [["eyjhb" "eyjhb@fricloud.dk"]];
|
ADMINS = [["admin" "admin@${config.mine.shared.settings.domain}"]];
|
||||||
MANAGERS = ADMINS;
|
MANAGERS = ADMINS;
|
||||||
|
|
||||||
TIME_ZONE = "Europe/Copenhagen";
|
TIME_ZONE = "Europe/Copenhagen";
|
||||||
|
@ -43,7 +36,6 @@ let
|
||||||
SECRET_KEY = "$SECRET_KEY";
|
SECRET_KEY = "$SECRET_KEY";
|
||||||
|
|
||||||
SITE_URL = "https://${svc_domain}";
|
SITE_URL = "https://${svc_domain}";
|
||||||
|
|
||||||
MEDIA_ROOT = "${statedir}/media";
|
MEDIA_ROOT = "${statedir}/media";
|
||||||
MEDIA_URL = "/media/";
|
MEDIA_URL = "/media/";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue