mirror of
https://github.com/getumbrel/umbrel-apps.git
synced 2026-11-22 22:02:29 +03:00
Co-authored-by: Kai Chappel <kaichappel@users.noreply.github.com> Co-authored-by: nmfretz <nmfretz@gmail.com>
101 lines
2.1 KiB
Bash
101 lines
2.1 KiB
Bash
# The server's timezone, for a list of possible names:
|
|
# https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
TIME_ZONE=Europe/Berlin
|
|
TZ=Europe/Berlin
|
|
|
|
#
|
|
# Application
|
|
WGER_INSTANCE=https://wger.de
|
|
ALLOW_REGISTRATION=True
|
|
ALLOW_GUEST_USERS=True
|
|
ALLOW_UPLOAD_VIDEOS=True
|
|
MIN_ACCOUNT_AGE_TO_TRUST=21
|
|
|
|
SYNC_EXERCISES_CELERY=True
|
|
SYNC_EXERCISE_IMAGES_CELERY=True
|
|
SYNC_EXERCISE_VIDEOS_CELERY=True
|
|
|
|
SYNC_INGREDIENTS_CELERY=True
|
|
SYNC_INGREDIENTS_DUMP_URL=https://wger.de/media/ingredients/ingredients.jsonl.gz
|
|
DOWNLOAD_INGREDIENTS_FROM=WGER
|
|
CACHE_API_EXERCISES_CELERY=True
|
|
CACHE_API_EXERCISES_CELERY_FORCE_UPDATE=True
|
|
|
|
USE_CELERY=True
|
|
|
|
#
|
|
# Celery
|
|
CELERY_BROKER=redis://wger_cache_1:6379/2
|
|
CELERY_BACKEND=redis://wger_cache_1:6379/2
|
|
CELERY_FLOWER_PASSWORD=adminadmin
|
|
|
|
#
|
|
# Database
|
|
DJANGO_DB_ENGINE=django.db.backends.postgresql
|
|
DJANGO_DB_DATABASE=wger
|
|
DJANGO_DB_USER=wger
|
|
DJANGO_DB_PASSWORD=wger
|
|
DJANGO_DB_HOST=wger_db_1
|
|
DJANGO_DB_PORT=5432
|
|
DJANGO_PERFORM_MIGRATIONS=True
|
|
|
|
#
|
|
# Cache
|
|
DJANGO_CACHE_BACKEND=django_redis.cache.RedisCache
|
|
DJANGO_CACHE_LOCATION=redis://wger_cache_1:6379/1
|
|
DJANGO_CACHE_TIMEOUT=1296000
|
|
DJANGO_CACHE_CLIENT_CLASS=django_redis.client.DefaultClient
|
|
|
|
#
|
|
# Brute force login attacks
|
|
AXES_ENABLED=True
|
|
AXES_FAILURE_LIMIT=10
|
|
AXES_COOLOFF_TIME=30
|
|
AXES_HANDLER=axes.handlers.cache.AxesCacheHandler
|
|
AXES_LOCKOUT_PARAMETERS=ip_address
|
|
AXES_IPWARE_PROXY_COUNT=1
|
|
AXES_IPWARE_META_PRECEDENCE_ORDER=HTTP_X_FORWARDED_FOR,REMOTE_ADDR
|
|
|
|
#
|
|
# Others
|
|
DJANGO_DEBUG=False
|
|
WGER_USE_GUNICORN=True
|
|
EXERCISE_CACHE_TTL=18000
|
|
|
|
#
|
|
# JWT auth
|
|
ACCESS_TOKEN_LIFETIME=10
|
|
REFRESH_TOKEN_LIFETIME=24
|
|
|
|
#
|
|
# Auth Proxy Authentication - left empty unless you use this
|
|
AUTH_PROXY_HEADER=''
|
|
AUTH_PROXY_TRUSTED_IPS=''
|
|
AUTH_PROXY_CREATE_UNKNOWN_USER=False
|
|
AUTH_PROXY_USER_EMAIL_HEADER=''
|
|
AUTH_PROXY_USER_NAME_HEADER=''
|
|
|
|
#
|
|
# Log level
|
|
LOG_LEVEL_PYTHON=INFO
|
|
|
|
#
|
|
# Recaptcha (disabled)
|
|
USE_RECAPTCHA=False
|
|
|
|
#
|
|
# Clear static files flag
|
|
DJANGO_CLEAR_STATIC_FIRST=False
|
|
|
|
#
|
|
# Email
|
|
FROM_EMAIL='wger Workout Manager <wger@example.com>'
|
|
|
|
#
|
|
# Django Rest Framework
|
|
NUMBER_OF_PROXIES=1
|
|
|
|
#
|
|
# Gunicorn
|
|
GUNICORN_CMD_ARGS="--workers 3 --threads 2 --worker-class gthread --proxy-protocol True --timeout 240"
|