-
Notifications
You must be signed in to change notification settings - Fork 47
/
.prod.env
198 lines (112 loc) · 4.46 KB
/
.prod.env
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# This file should contain a set of Mergin Maps configuration definitions along with their default values
# Mind that any major change to this file MUST BE reflected in docs
FLASK_APP=application
# Required for access of your server
#MERGIN_BASE_URL=http://localhost:5000
#DEBUG=FLASK_DEBUG | False
FLASK_DEBUG=0
#LOCAL_PROJECTS=os.path.join(config_dir, os.pardir, os.pardir, 'projects') # for local storage type
LOCAL_PROJECTS=/data
#MAINTENANCE_FILE=os.path.join(LOCAL_PROJECTS, 'MAINTENANCE') # locking file when backups are created
MAINTENANCE_FILE=/data/MAINTENANCE
#SWAGGER_UI=False # to enable swagger UI console (for test only)
#TEMP_DIR=gettempdir() # trash dir for temp files being cleaned regularly
TEMP_DIR=/data/tmp
#VERSION=get_version()
# Mergin DB related
#DB_APPLICATION_NAME=mergin
#DB_DATABASE=postgres
#DB_HOST=localhost
DB_HOST=db
#DB_PASSWORD=postgres
#DB_POOL_MAX_OVERFLOW=10 # max_overflow set to SQLAlchemy default https://docs.sqlalchemy.org/en/14/core/engines.html
#DB_POOL_SIZE=2
#DB_POOL_TIMEOUT=300
#DB_PORT=5002
DB_PORT=5432
#DB_USER=postgres
#SQLALCHEMY_DATABASE_URI=postgresql://{DB_USER}:{DB_PASSWORD}@{DB_HOST}:{DB_PORT}/{DB_DATABASE}?application_name={DB_APPLICATION_NAME}'
#SQLALCHEMY_ENGINE_OPTIONS={'pool_size': DB_POOL_SIZE, 'max_overflow': DB_POOL_MAX_OVERFLOW, 'pool_timeout' DB_POOL_TIMEOUT}
#SQLALCHEMY_TRACK_MODIFICATIONS=False
# auth related
#SECRET_KEY=NODEFAULT
SECRET_KEY=fixme
#BEARER_TOKEN_EXPIRATION=3600 * 12 # in seconds
#SECURITY_PASSWORD_SALT=NODEFAULT
SECURITY_PASSWORD_SALT=fixme
#WTF_CSRF_ENABLED=True
#WTF_CSRF_TIME_LIMIT=3600 * 24 # in seconds
# Mail configuration
MAIL_SUPPRESS_SEND=0
# Sender of emails
# SMTP server url address
# MAIL_SERVER=example.smtp.com
# SMTP server port
# MAIL_PORT=587
# SMTP server username
# MAIL_USERNAME=
# SMTP server password
# MAIL_PASSWORD=
# Default True
# MAIL_USE_TLS=True
# Default False
# MAIL_USE_SSL=False
#MAIL_BCC=''
#MERGIN_LOGO_URL= # for link to logo in emails
#MAIL_DEBUG=MAIL_SUPPRESS_SEND | False
# data sync
#BLACKLIST='.mergin/, .DS_Store, .directory' # cast=Csv()
#FILE_EXPIRATION=48 * 3600 # for clean up of old files where diffs were applied, in seconds
#LOCKFILE_EXPIRATION=300 # in seconds
#MAX_CHUNK_SIZE=10 * 1024 * 1024 # 10485760 in bytes
#MAX_DOWNLOAD_ARCHIVE_SIZE=1024 * 1024 * 1024 # max total files size for archive download
#USE_X_ACCEL=False # use nginx (in front of gunicorn) to serve files (https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/)
USE_X_ACCEL=1
# geodif related
# where geodiff lib copies working files
#GEODIFF_WORKING_DIR=$LOCAL_PROJECTS/geodiff_tmp
GEODIFF_WORKING_DIR=/data/geodiff
GEODIFF_LOGGER_LEVEL=2
# celery
#BROKER_URL=redis://172.17.0.1:6379/0
BROKER_URL=redis://merginmaps-redis:6379/0
#BROKER_TRANSPORT_OPTIONS={} # cast=eval
BROKER_TRANSPORT_OPTIONS={ 'master_name': 'mymaster' }
#CELERY_RESULT_BACKEND=redis://172.17.0.1:6379/0'
CELERY_RESULT_BACKEND=redis://merginmaps-redis:6379/0
#CELERY_ACKS_LATE=False
#CELERY_ACKS_LATE=True
# set to number of cpu
#CELERYD_CONCURRENCY=2
# Deprecated from 2024.7.0, use CELERYD_CONCURRENCY instead after 2024.7.0
# CELERY_WORKER_CONCURRENCY=1
#CELERYD_PREFETCH_MULTIPLIER=4
#CELERYD_PREFETCH_MULTIPLIER=4
# Deprecated from 2024.7.0, use CELERYD_PREFETCH_MULTIPLIER instead after 2024.7.0
#CELERY_WORKER_PREFETCH_MULTIPLIER=4
#CELERY_ROUTES={} # split tasks into separate queues
# various life times
#CLOSED_ACCOUNT_EXPIRATION=5 # time in days after user closed his account to all projects and files are permanently deleted
CLOSED_ACCOUNT_EXPIRATION=1
#DELETED_PROJECT_EXPIRATION=7 # lifetime of deleted project, expired project are removed permanently without restore possibility, in days
#PROJECT_ACCESS_REQUEST=7 * 24 * 3600
#TEMP_EXPIRATION=7 # time in days after files are permanently deleted
# for links generated in emails and callbacks
# Statistics related
#COLLECT_STATISTICS True
#SERVICE_ID # should be random uuid
# global workspace related bits
# GLOBAL_WORKSPACE mergin
# GLOBAL_STORAGE 1024 * 1024 * 1024
GLOBAL_STORAGE=10737418240
# GLOBAL_READ False - Everyone will be "guest", you need to share projects with them explicitly
# GLOBAL_WRITE False
# GLOBAL_ADMIN False
# toggle registration form to create new users
#USER_SELF_REGISTRATION=False
# Gunicorn server socket
PORT=5000
GEVENT_WORKER=True
# Deprecated from 2024.7.0, replacement is to set GEVENT_WORKER=True
NO_MONKEY_PATCH=False