deploy/templates/backend_settings.ini.j2
author ymh <ymh.work@gmail.com>
Fri, 30 Nov 2018 10:53:15 +0100
changeset 183 f8f3af9e5c83
parent 180 62bffc051e1c
permissions -rw-r--r--
Change the settings to avoid using Session authentication for rest framework as it raise exceptions in case client and backend are on the same domain On the filter, adapt to take into account new version of django_filters

[settings]
# Base url for the application. default=''
BASE_URL={{backend_base_url}}

# base url for static resources (ends with "/")
# default : /static/
STATIC_URL={{backend_static_url}}

# The absolute path to the directory where collectstatic will collect static files for deployment. (https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-STATIC_ROOT)
# default: <path to irinotes repository clone>/run/web/static
STATIC_ROOT={{backend_static_root}}

# base url for static resources (ends with "/")
# default : /media/
MEDIA_URL={{backend_media_url}}

# Absolute filesystem path to the directory that will hold user-uploaded files (https://docs.djangoproject.com/en/1.11/ref/settings/#media-root)
# default: <path to irinotes repository clone>/run/web/media
MEDIA_ROOT={{backend_media_root}}

# Secret key for the application. cf. https://docs.djangoproject.com/en/1.11/ref/settings/#secret-key
SECRET_KEY={{backend_secret_key}}

# Debug the application. Default True
DEBUG={{backend_debug}}

# Comma separated values of authorized host. cf. https://docs.djangoproject.com/en/1.11/ref/settings/#allowed-hosts
# default: empty
ALLOWED_HOSTS={{backend_allowed_hosts}}

# 12factor inspired DATABASE_URL environment variable cf.https://github.com/kennethreitz/dj-database-url
# examples: postgres://<user>:<password>@<host>:<port>/<db_name>
# examples: sqlite:////full/path/to/your/database/file.sqlite
# default: sqlite:///<path to irinotes repository clone>/run/db/db.sqlite3
DATABASE_URL={{backend_database_url}}

# path for the log file
# default: <path to irinotes repository clone>/run/log/log.txt
LOG_FILE={{backend_log_file}}

# log level one of CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET. Default: ERROR
LOG_LEVEL={{backend_log_level}}

JWT_EXPIRATION_DELTA={{backend_jwt_expiration_delta}}
JWT_REFRESH_EXPIRATION_DELTA={{backend_jwt_refresh_expiration_delta}}