services.wger: updated to newest version + added auth proxy header

This commit is contained in:
eyjhb 2025-01-02 17:21:21 +01:00
parent 5c65f7f922
commit 94e08fd2f0
Signed by: eyjhb
GPG key ID: 609F508E3239F920
3 changed files with 19 additions and 46 deletions

View file

@ -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 {