22
33# Mind that any major change to this file MUST BE reflected in docs
44
5+
56FLASK_APP = application
6- GEODIFF_LOGGER_LEVEL = 2
7- CONTACT_EMAIL = fixme
7+
8+ # Required for access of your server
9+ # MERGIN_BASE_URL=http://localhost:5000
810
911# DEBUG=FLASK_DEBUG | False
12+ FLASK_DEBUG = 0
1013
1114# LOCAL_PROJECTS=os.path.join(config_dir, os.pardir, os.pardir, 'projects') # for local storage type
1215LOCAL_PROJECTS = /data
1316
1417# MAINTENANCE_FILE=os.path.join(LOCAL_PROJECTS, 'MAINTENANCE') # locking file when backups are created
1518MAINTENANCE_FILE = /data/MAINTENANCE
1619
17- # SECRET_KEY=NODEFAULT
18- SECRET_KEY = fixme
19-
2020# SWAGGER_UI=False # to enable swagger UI console (for test only)
2121
2222# TEMP_DIR=gettempdir() # trash dir for temp files being cleaned regularly
2323TEMP_DIR = /data/tmp
2424
25- # TESTING=False
26-
2725# VERSION=get_version()
2826
2927
@@ -58,6 +56,9 @@ DB_PORT=5432
5856
5957# auth related
6058
59+ # SECRET_KEY=NODEFAULT
60+ SECRET_KEY = fixme
61+
6162# BEARER_TOKEN_EXPIRATION=3600 * 12 # in seconds
6263
6364# SECURITY_PASSWORD_SALT=NODEFAULT
@@ -68,29 +69,37 @@ SECURITY_PASSWORD_SALT=fixme
6869# WTF_CSRF_TIME_LIMIT=3600 * 24 # in seconds
6970
7071
71- # for flask mail
72+ # Mail configuration
7273
73- # MAIL_BCC=NODEFAULT
74+ MAIL_SUPPRESS_SEND = 0
7475
75- # MAIL_DEBUG=MAIL_SUPPRESS_SEND | False
76+ # Sender of emails
77+ 78+
79+ # SMTP server url address
80+ # MAIL_SERVER=example.smtp.com
81+
82+ # SMTP server port
83+ # MAIL_PORT=587
7684
77- # MAIL_DEFAULT_SENDER=NODEFAULT
78- MAIL_DEFAULT_SENDER = fixme
85+ # SMTP server username
86+ # MAIL_USERNAME=
7987
80- # MAIL_PASSWORD=NODEFAULT
88+ # SMTP server password
89+ # MAIL_PASSWORD=
8190
82- # MAIL_PORT=587
91+ # Default True
92+ # MAIL_USE_TLS=True
8393
84- # MAIL_SERVER=localhost
85- MAIL_SERVER = fixme
94+ # Default False
95+ # MAIL_USE_SSL=False
8696
87- # MAIL_SUPPRESS_SEND=True
97+ # MAIL_BCC=''
8898
89- # MAIL_USE_TLS=True
90- # MAIL_USE_SSL=False
99+ # MERGIN_LOGO_URL= # for link to logo in emails
100+
101+ # MAIL_DEBUG=MAIL_SUPPRESS_SEND | False
91102
92- # MAIL_USERNAME=NODEFAULT
93- MAIL_USERNAME = fixme
94103
95104
96105# data sync
@@ -108,9 +117,12 @@ MAIL_USERNAME=fixme
108117# USE_X_ACCEL=False # use nginx (in front of gunicorn) to serve files (https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/)
109118USE_X_ACCEL = 1
110119
120+ # geodif related
121+
111122# where geodiff lib copies working files
112123# GEODIFF_WORKING_DIR=$LOCAL_PROJECTS/geodiff_tmp
113124GEODIFF_WORKING_DIR = /data/geodiff
125+ GEODIFF_LOGGER_LEVEL = 2
114126
115127# celery
116128
@@ -123,15 +135,20 @@ BROKER_TRANSPORT_OPTIONS={ 'master_name': 'mymaster' }
123135# CELERY_RESULT_BACKEND=redis://172.17.0.1:6379/0'
124136CELERY_RESULT_BACKEND = redis://merginmaps-redis:6379/0
125137
126- # CELERY_RESULT_BACKEND_TRANSPORT_OPTIONS={} # cast=eval
127- CELERY_RESULT_BACKEND_TRANSPORT_OPTIONS = { 'master_name': 'mymaster' }
128-
129138# CELERY_ACKS_LATE=False
139+ # CELERY_ACKS_LATE=True
140+
141+ # set to number of cpu
142+ # CELERYD_CONCURRENCY=2
130143
131- # CELERY_WORKER_CONCURRENCY=1 # set to number of cpu in case of prefork or to higher number in case of gevent pool
132- CELERYD_CONCURRENCY = 2
144+ # Deprecated from 2024.7.0, use CELERYD_CONCURRENCY instead after 2024.7.0
145+ # CELERY_WORKER_CONCURRENCY=1
133146
134147# CELERYD_PREFETCH_MULTIPLIER=4
148+ # CELERYD_PREFETCH_MULTIPLIER=4
149+
150+ # Deprecated from 2024.7.0, use CELERYD_PREFETCH_MULTIPLIER instead after 2024.7.0
151+ # CELERY_WORKER_PREFETCH_MULTIPLIER=4
135152
136153# CELERY_ROUTES={} # split tasks into separate queues
137154
@@ -149,15 +166,15 @@ CLOSED_ACCOUNT_EXPIRATION=1
149166
150167# for links generated in emails and callbacks
151168
152- # MERGIN_BASE_URL=http://localhost:5000
153169
154- # MERGIN_LOGO_URL= # for link to logo in emails
170+ # Statistics related
155171
156172# COLLECT_STATISTICS True
157173
158174# SERVICE_ID # should be random uuid
159175
160176# global workspace related bits
177+
161178# GLOBAL_WORKSPACE mergin
162179
163180# GLOBAL_STORAGE 1024 * 1024 * 1024
@@ -172,10 +189,10 @@ GLOBAL_STORAGE=10737418240
172189# toggle registration form to create new users
173190# USER_SELF_REGISTRATION=False
174191
175- # what type of server is running, e.g. community edition or enterprise edition
176- # SERVER_TYPE=ce
177-
178192# Gunicorn server socket
179193PORT = 5000
180194
181195GEVENT_WORKER = True
196+ # Deprecated from 2024.7.0, replacement is to set GEVENT_WORKER=True
197+ NO_MONKEY_PATCH = False
198+
0 commit comments