-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env.example
104 lines (91 loc) · 3.93 KB
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Important notes regarding this .env-file:
#
# - For more information about .env-files, please see
# https://smartmob-rfc.readthedocs.io/en/latest/2-dotenv.html
#
# - Use blank lines for spacing.
#
# - Comments start with # and always start beginning-of-line (BOL).
# Inline comments are NOT supported and will break the syntax.
#
# - Place your secrets and passwords here, but do not commit this file back to any repository.
# Also avoid transmitting these secrets to other people in plain-text.
#
# - Most python-interpreter related env-variables will need to be set/sourced *before* the python-interpreter starts
# Reading them via sitecustomize.py comes too late, since the python-process has already started.
#
# - Use bash-compatible variable-assigment-syntax: FOO='BAR'
# To preserve bash-compatibility, never use spaces around the equal-operator, so don't use FOO = 'BAR'.
# Always single-quote the values to preserve the literal value of each character. For example if a
# password contains backslashes, those should be treated as literal values, and not as escape-characters
# like when double-quoting. So always use FOO='BAR', not FOO=BAR nor FOO="BAR".
# TODO: docker breaks when using quotes.
#
# - Standard env-variables only support string-types. However in python we can easily parse strings into
# other types like lists. For example FOO='BAR|BAZ', we can string-parse into FOO=["BAR", "BAZ"].
#
# - In bash, you can directly source this file to load all these env-var in your current bash-session:
# >>> set -a && source .env && set +a
# Usability-tip: Add following alias to your ~/.bashrc
# >> alias source-env='set -a && source .env && set +a'
PROJECT_NAME='libranet_django'
BASE_DIR='__CWD__'
IPYTHONDIR='__CWD__/etc/ipython'
PYTHONSTARTUP='__CWD__/etc/pythonstartup.py'
# caching
CACHE_DIR='__CWD__/var/cache/'
BLACK_CACHE_DIR='__CWD__/var/cache/black'
IPYTHON_CACHE_DIR='__CWD__/var/cache/ipython'
MYPY_CACHE_DIR='__CWD__/var/cache/mypy'
PRE_COMMIT_HOME='__CWD__/var/cache/pre-commit'
PYLINTHOME='__CWD__/var/cache/pylint'
RUFF_CACHE_DIR='__CWD__/var/cache/ruff' # use python -m ruff
# debugging
# used by python-interpreter, cfr. https://docs.python.org/3/using/cmdline.html#environment-variables
# used by ipdb / remote-pdb - cfr https://pypi.org/project/remote-pdb + cfr https://pypi.org/project/ipdb
# PYTHONBREAKPOINT='pdb.set_trace'
PYTHONBREAKPOINT='ipdb.set_trace'
# show headers in urllib3-http-connections
DEBUGLEVEL_HTTPCONNECTION='1'
# tmp
TMP='__CWD__/var/tmp'
TMPDIR='__CWD__/var/tmp'
TEMP='__CWD__/var/tmp'
# libranet-logging - etc/logging.yaml
# Supported values for logging, from lowest to highest priority:
# LOGLEVEL_XXX: NOTSET|TRACE|DEBUG|INFO|WARNING|ERROR
LOGGING_YML_FILE='__CWD__/etc/logging.yaml'
PYTHON_LOG_CONFIG='__CWD__/etc/logging.yaml' # to be removed in v1.4s
LOG_DIR='__CWD__/var/log'
PYTHON_CONSOLE_FORMATTER='console_color'
LOGLEVEL_ROOT='NOTSET'
LOGLEVEL_ASYNCIO='NOTSET'
LOGLEVEL_BLIB2TO3='INFO'
LOGLEVEL_DJANGO='NOTSET'
LOGLEVEL_DJANGO_DB_BACKENDS='NOTSET'
LOGLEVEL_LIBRANET_DJANGO='NOTSET'
LOGLEVEL_HTTP_CLIENT='DEBUG'
LOGLEVEL_LIBRANET_LOGGING='INFO'
LOGLEVEL_MULTIPART='INFO'
LOGLEVEL_PARSO='INFO'
LOGLEVEL_PY_WARNINGS='NOTSET'
LOGLEVEL_REQUESTS='NOTSET'
LOGLEVEL_REQUESTS_PACKAGES_URLLIB3='NOTSET'
LOGLEVEL_URLLIB3='NOTSET'
LOGLEVEL_URLLIB3_CONNECTIONPOOL='NOTSET'
LOGLEVEL_URLLIB3_UTIL_RETRY='NOTSET'
PYTHONASYNCIODDEBUG='1'
LOG_HANDLERS='console|debug_file|info_file|warning_file|error_file'
PYTHON_ENABLE_LOGGING_TREE='0'
# django
DJANGO_ALLOWED_HOSTS='127.0.0.1|localhost|libranet-django'
DJANGO_BASE_URL='https://example.com'
DJANGO_DEBUG='1'
DJANGO_SECRET_KEY='__DJANGO_SECRET_KEY__'
DJANGO_SETTINGS_MODULE='libranet_django.settings'
GUNICORN_CMD_ARGS='--bind=0.0.0.0:5000 --workers=2 --reload'
WAGTAILADMIN_BASE_URL='https://example.com'
# serve app via uvicorn, see https://www.uvicorn.org/settings/
UVICORN_PORT='8000'
UVICORN_HOST='0.0.0.0'
UVICORN_RELOAD='1'