services.wger: updated to newest version + added auth proxy header
This commit is contained in:
parent
5c65f7f922
commit
94e08fd2f0
3 changed files with 19 additions and 46 deletions
|
@ -138,15 +138,15 @@ in
|
|||
config = mkIf cfg.enable {
|
||||
services.wger.wgerSettings = {
|
||||
EMAIL_FROM = mkDefault "wger Workout Manager <wger@example.com>";
|
||||
ALLOW_REGISTRATION = true;
|
||||
ALLOW_GUEST_USERS = true;
|
||||
ALLOW_UPLOAD_VIDEOS = false;
|
||||
MIN_ACCOUNT_AGE_TO_TRUST = 1;
|
||||
EXERCISE_CACHE_TTL = 3600; # 1 hour
|
||||
ALLOW_REGISTRATION = mkDefault true;
|
||||
ALLOW_GUEST_USERS = mkDefault true;
|
||||
ALLOW_UPLOAD_VIDEOS = mkDefault false;
|
||||
MIN_ACCOUNT_AGE_TO_TRUST = mkDefault 1;
|
||||
EXERCISE_CACHE_TTL = mkDefault 3600; # 1 hour
|
||||
};
|
||||
|
||||
services.wger.djangoSettings = rec {
|
||||
DEBUG = false;
|
||||
DEBUG = mkDefault false;
|
||||
|
||||
# configure database as postgresql or sqlite
|
||||
DATABASES.default = if cfg.configurePostgres then {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue