fix: refactor env
This commit is contained in:
31
.env.sample
31
.env.sample
@ -12,20 +12,9 @@ SECRET_DJANGO_SECRET_KEY_VERSION=v1
|
||||
# more concurrent requests, but also leads to higher CPU/Memory usage
|
||||
FUNKWHALE_WEB_WORKERS=4
|
||||
|
||||
# Replace this by the definitive, public domain you will use for
|
||||
# your instance. It cannot be changed after initial deployment
|
||||
# without breaking your instance.
|
||||
FUNKWHALE_HOSTNAME=funkwhale.example.com
|
||||
FUNKWHALE_PROTOCOL=https
|
||||
|
||||
# Log level (debug, info, warning, error, critical)
|
||||
LOGLEVEL=error
|
||||
|
||||
# Depending on the reverse proxy used in front of your funkwhale instance,
|
||||
# the API will use different kind of headers to serve audio files
|
||||
# Allowed values: nginx, apache2
|
||||
REVERSE_PROXY_TYPE=nginx
|
||||
|
||||
# Number of worker processes to execute. Defaults to 0, in which case it uses
|
||||
# your number of CPUs Celery workers handle background tasks (such file imports
|
||||
# or federation messaging). The more processes a worker gets, the more tasks
|
||||
@ -33,6 +22,20 @@ REVERSE_PROXY_TYPE=nginx
|
||||
# memory footprint.
|
||||
# CELERYD_CONCURRENCY=0
|
||||
|
||||
# which settings module should django use?
|
||||
# You don't have to touch this unless you really know what you're doing
|
||||
DJANGO_SETTINGS_MODULE=config.settings.production
|
||||
# Max upload size
|
||||
NGINX_MAX_BODY_SIZE=100M
|
||||
|
||||
# Insert e-mail secret like this:
|
||||
#
|
||||
# abra app secret insert APP email_config v1 "URL"
|
||||
#
|
||||
# Where URL is
|
||||
# smtp+ssl://user:password@youremail.host:465
|
||||
# smtp://user:password@youremail.host:25
|
||||
# smtp+tls://user:password@youremail.host:587
|
||||
SECRET_EMAIL_CONFIG_VERSION=v1
|
||||
|
||||
# DEFAULT_FROM_EMAIL=noreply@yourdomain
|
||||
|
||||
# Make e-mail verification mandatory before using the service
|
||||
ACCOUNT_EMAIL_VERIFICATION_ENFORCE=true
|
||||
|
23
compose.yml
23
compose.yml
@ -2,23 +2,28 @@
|
||||
version: "3.8"
|
||||
|
||||
x-environment: &default-env
|
||||
- FUNKWHALE_HOSTNAME=${HOSTNAME}
|
||||
- FUNKWHALE_PROTOCOL=https
|
||||
- REVERSE_PROXY_TYPE=nginx
|
||||
- DJANGO_SETTINGS_MODULE=config.settings.production
|
||||
- FUNKWHALE_API_IP=127.0.0.1
|
||||
- FUNKWHALE_API_PORT=5000
|
||||
- CACHE_URL=redis://cache:6379/0
|
||||
- DEFAULT_FROM_EMAIL=noreply@${DOMAIN}
|
||||
- FUNKWHALE_WEB_WORKERS
|
||||
- LOGLEVEL
|
||||
- ACCOUNT_EMAIL_VERIFICATION_ENFORCE
|
||||
- CELERYD_CONCURRENCY
|
||||
- C_FORCE_ROOT=true
|
||||
- DATABASE_PASSWORD_FILE=/run/secrets/db_password
|
||||
- DJANGO_SECRET_KEY_FILE=/run/secrets/django_secret_key
|
||||
- DJANGO_SETTINGS_MODULE
|
||||
- DOMAIN
|
||||
- FUNKWHALE_FRONTEND_PATH=/srv/funkwhale/front/dist
|
||||
- FUNKWHALE_HOSTNAME
|
||||
- FUNKWHALE_WEB_WORKERS
|
||||
- LOGLEVEL
|
||||
- NGINX_MAX_BODY_SIZE
|
||||
- MEDIA_ROOT=/srv/funkwhale/data/media
|
||||
- MUSIC_DIRECTORY_PATH=/srv/funkwhale/data/music
|
||||
- MUSIC_DIRECTORY_SERVE_PATH=/srv/funkwhale/data/music
|
||||
- REVERSE_PROXY_TYPE
|
||||
- STACK_NAME
|
||||
- STATIC_ROOT=/srv/funkwhale/data/static
|
||||
- MUSIC_DIRECTORY_PATH=/music
|
||||
- MUSIC_DIRECTORY_SERVE_PATH=/srv/funkwhale/data/music
|
||||
- STACK_NAME
|
||||
|
||||
x-secrets: &default-secrets
|
||||
- db_password
|
||||
|
Reference in New Issue
Block a user