2020-10-08 10:34:02 +00:00
|
|
|
################################################################################
|
|
|
|
# Docker #
|
|
|
|
################################################################################
|
2021-09-15 15:58:17 +00:00
|
|
|
# DEFAULT: ./data
|
|
|
|
# NOTE: Use `.` as <project-basedir>
|
|
|
|
# HOST_DATA_DIR=
|
2020-10-21 11:07:10 +00:00
|
|
|
|
2020-11-13 09:01:51 +00:00
|
|
|
# Example: 1000
|
|
|
|
# HINT: Use this bash command `id -u`
|
|
|
|
HOST_UID=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
|
|
|
# Example: 1000
|
|
|
|
# HINT: Use this bash command `id -g`
|
|
|
|
HOST_GID=
|
|
|
|
|
2020-11-13 09:01:51 +00:00
|
|
|
# Example: 999
|
|
|
|
# HINT: Use this bash command `getent group docker | cut -d: -f3`
|
|
|
|
HOST_DOCKER_GID=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
2021-09-15 15:58:17 +00:00
|
|
|
# DEFAULT: ./logs
|
|
|
|
# NOTES: Use `.` as <project-basedir>
|
|
|
|
# HOST_LOG_DIR=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
|
|
|
################################################################################
|
2020-11-13 09:01:51 +00:00
|
|
|
# Flask #
|
|
|
|
# https://flask.palletsprojects.com/en/1.1.x/config/ #
|
2020-10-08 10:34:02 +00:00
|
|
|
################################################################################
|
2020-11-17 09:16:40 +00:00
|
|
|
# CHOOSE ONE: http, https
|
|
|
|
# DEFAULT: http
|
|
|
|
# PREFERRED_URL_SCHEME=
|
|
|
|
|
2020-11-13 09:01:51 +00:00
|
|
|
# DEFAULT: hard to guess string
|
|
|
|
# HINT: Use this bash command `python -c "import uuid; print(uuid.uuid4().hex)"`
|
|
|
|
# SECRET_KEY=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
2020-11-17 13:58:03 +00:00
|
|
|
# Example: nopaque.example.com/nopaque.example.com:5000
|
2020-11-17 09:16:40 +00:00
|
|
|
# HINT: If your instance is publicly available on a different Port then 80/443,
|
|
|
|
# you will have to add this to the server name
|
|
|
|
SERVER_NAME=
|
|
|
|
|
2020-10-21 11:07:10 +00:00
|
|
|
# CHOOSE ONE: False, True
|
|
|
|
# DEFAULT: False
|
|
|
|
# HINT: Set to true if you redirect http to https
|
2020-11-13 09:01:51 +00:00
|
|
|
# SESSION_COOKIE_SECURE=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
2021-11-15 13:34:07 +00:00
|
|
|
# CHOOSE ONE: False, True
|
|
|
|
# DEFAULT: False
|
2022-02-08 14:11:06 +00:00
|
|
|
# TEMPLATES_AUTO_RELOAD=
|
2021-11-15 13:34:07 +00:00
|
|
|
|
2020-10-08 10:34:02 +00:00
|
|
|
|
2020-10-21 11:07:10 +00:00
|
|
|
################################################################################
|
2020-11-13 09:01:51 +00:00
|
|
|
# Flask-Login #
|
|
|
|
# https://flask-login.readthedocs.io/en/latest/ #
|
2020-10-21 11:07:10 +00:00
|
|
|
################################################################################
|
2020-11-13 09:01:51 +00:00
|
|
|
# CHOOSE ONE: False, True
|
|
|
|
# DEFAULT: False
|
|
|
|
# HINT: Set to true if you redirect http to https
|
|
|
|
# REMEMBER_COOKIE_SECURE=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
2020-11-13 09:01:51 +00:00
|
|
|
# Flask-Mail #
|
|
|
|
# https://pythonhosted.org/Flask-Mail/ #
|
2020-10-08 10:34:02 +00:00
|
|
|
################################################################################
|
|
|
|
# EXAMPLE: nopaque Admin <nopaque@example.com>
|
2020-11-13 09:01:51 +00:00
|
|
|
MAIL_DEFAULT_SENDER=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
2020-11-13 09:01:51 +00:00
|
|
|
MAIL_PASSWORD=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
|
|
|
# EXAMPLE: smtp.example.com
|
2020-11-13 09:01:51 +00:00
|
|
|
MAIL_SERVER=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
|
|
|
# EXAMPLE: 587
|
2020-11-13 09:01:51 +00:00
|
|
|
MAIL_PORT=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
2020-10-21 11:07:10 +00:00
|
|
|
# CHOOSE ONE: False, True
|
2020-10-08 10:34:02 +00:00
|
|
|
# DEFAULT: False
|
2020-11-13 09:01:51 +00:00
|
|
|
# MAIL_USE_SSL=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
2020-10-21 11:07:10 +00:00
|
|
|
# CHOOSE ONE: False, True
|
2020-10-08 10:34:02 +00:00
|
|
|
# DEFAULT: False
|
2020-11-13 09:01:51 +00:00
|
|
|
# MAIL_USE_TLS=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
|
|
|
# EXAMPLE: nopaque@example.com
|
2020-11-13 09:01:51 +00:00
|
|
|
MAIL_USERNAME=
|
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
|
|
|
# Flask-SQLAlchemy #
|
|
|
|
# https://flask-sqlalchemy.palletsprojects.com/en/2.x/config/ #
|
|
|
|
################################################################################
|
2021-09-15 15:58:17 +00:00
|
|
|
# DEFAULT: 'sqlite:///<nopaque-basedir>/app.db'
|
|
|
|
# NOTE: Use `.` as <nopaque-basedir>,
|
|
|
|
# Don't use a SQLite database when using Docker
|
2020-11-13 09:01:51 +00:00
|
|
|
# SQLALCHEMY_DATABASE_URI=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
|
|
|
|
|
|
|
################################################################################
|
2020-11-13 09:01:51 +00:00
|
|
|
# nopaque #
|
2020-10-08 10:34:02 +00:00
|
|
|
################################################################################
|
2021-01-18 08:25:08 +00:00
|
|
|
# An account is registered with this email adress gets automatically assigned
|
|
|
|
# the administrator role.
|
2020-10-21 11:07:10 +00:00
|
|
|
# EXAMPLE: admin.nopaque@example.com
|
2020-11-13 09:01:51 +00:00
|
|
|
NOPAQUE_ADMIN=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
|
|
|
# DEFAULT: /mnt/nopaque
|
2020-11-13 09:01:51 +00:00
|
|
|
# NOTE: This must be a network share and it must be available on all Docker
|
|
|
|
# Swarm nodes
|
2020-10-08 10:34:02 +00:00
|
|
|
# NOPAQUE_DATA_DIR=
|
|
|
|
|
2020-11-13 14:01:53 +00:00
|
|
|
# CHOOSE ONE: False, True
|
2020-11-19 14:20:18 +00:00
|
|
|
# DEFAULT: True
|
2020-11-13 14:01:53 +00:00
|
|
|
# NOPAQUE_DAEMON_ENABLED=
|
|
|
|
|
2021-11-15 13:34:07 +00:00
|
|
|
# NOTE: Get these from the nopaque development team
|
2021-11-25 14:41:50 +00:00
|
|
|
NOPAQUE_DOCKER_REGISTRY_USERNAME=
|
|
|
|
NOPAQUE_DOCKER_REGISTRY_PASSWORD=
|
2021-11-15 13:34:07 +00:00
|
|
|
|
2020-11-13 09:01:51 +00:00
|
|
|
# transport://[userid:password]@hostname[:port]/[virtual_host]
|
|
|
|
NOPAQUE_SOCKETIO_MESSAGE_QUEUE_URI=
|
2020-10-08 10:34:02 +00:00
|
|
|
|
|
|
|
# DEFAULT: %Y-%m-%d %H:%M:%S
|
|
|
|
# NOPAQUE_LOG_DATE_FORMAT=
|
|
|
|
|
|
|
|
# DEFAULT: [%(asctime)s] %(levelname)s in %(pathname)s (function: %(funcName)s, line: %(lineno)d): %(message)s
|
|
|
|
# NOPAQUE_LOG_FORMAT=
|
|
|
|
|
2021-09-15 15:58:17 +00:00
|
|
|
# DEFAULT: INFO
|
2020-10-21 11:07:10 +00:00
|
|
|
# CHOOSE ONE: CRITICAL, ERROR, WARNING, INFO, DEBUG
|
2020-10-08 10:34:02 +00:00
|
|
|
# NOPAQUE_LOG_LEVEL=
|
|
|
|
|
2021-09-16 09:04:47 +00:00
|
|
|
# CHOOSE ONE: False, True
|
|
|
|
# DEFAULT: True
|
|
|
|
# NOPAQUE_LOG_FILE_ENABLED=
|
|
|
|
|
|
|
|
# DEFAULT: <nopaque-basedir>/logs
|
|
|
|
# NOTE: Use `.` as <nopaque-basedir>
|
|
|
|
# NOPAQUE_LOG_FILE_DIR=
|
|
|
|
|
|
|
|
# DEFAULT: NOPAQUE_LOG_LEVEL
|
|
|
|
# CHOOSE ONE: CRITICAL, ERROR, WARNING, INFO, DEBUG
|
|
|
|
# NOPAQUE_LOG_FILE_LEVEL=
|
|
|
|
|
2021-09-15 15:58:17 +00:00
|
|
|
# CHOOSE ONE: False, True
|
|
|
|
# DEFAULT: False
|
2021-09-16 09:04:47 +00:00
|
|
|
# NOPAQUE_LOG_STDERR_ENABLED=
|
|
|
|
|
|
|
|
# DEFAULT: NOPAQUE_LOG_LEVEL
|
|
|
|
# CHOOSE ONE: CRITICAL, ERROR, WARNING, INFO, DEBUG
|
|
|
|
# NOPAQUE_LOG_STDERR_LEVEL=
|
2021-09-15 15:58:17 +00:00
|
|
|
|
2020-10-21 11:07:10 +00:00
|
|
|
# DEFAULT: 0
|
|
|
|
# Number of values to trust for X-Forwarded-For
|
2020-11-13 09:01:51 +00:00
|
|
|
# NOPAQUE_PROXY_FIX_X_FOR=
|
2020-10-21 11:07:10 +00:00
|
|
|
|
|
|
|
# DEFAULT: 0
|
|
|
|
# Number of values to trust for X-Forwarded-Host
|
2020-11-13 09:01:51 +00:00
|
|
|
# NOPAQUE_PROXY_FIX_X_HOST=
|
2020-10-21 11:07:10 +00:00
|
|
|
|
|
|
|
# DEFAULT: 0
|
|
|
|
# Number of values to trust for X-Forwarded-Port
|
2020-11-13 09:01:51 +00:00
|
|
|
# NOPAQUE_PROXY_FIX_X_PORT=
|
2020-10-21 11:07:10 +00:00
|
|
|
|
|
|
|
# DEFAULT: 0
|
|
|
|
# Number of values to trust for X-Forwarded-Prefix
|
2020-11-13 09:01:51 +00:00
|
|
|
# NOPAQUE_PROXY_FIX_X_PREFIX=
|
2020-10-21 11:07:10 +00:00
|
|
|
|
|
|
|
# DEFAULT: 0
|
|
|
|
# Number of values to trust for X-Forwarded-Proto
|
2020-11-13 09:01:51 +00:00
|
|
|
# NOPAQUE_PROXY_FIX_X_PROTO=
|