forked from MerginMaps/server
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.prod.env
162 lines (88 loc) · 3.76 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
# 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
GEODIFF_LOGGER_LEVEL=2
CONTACT_EMAIL=fixme
#DEBUG=FLASK_DEBUG | False
#LOCAL_PROJECTS=/data/live
LOCAL_PROJECTS=os.path.join(config_dir, os.pardir, os.pardir, 'projects') # for local storage type
#MAINTENANCE_FILE=os.path.join(LOCAL_PROJECTS, 'MAINTENANCE') # locking file when backups are created
MAINTENANCE_FILE=/data/MAINTENANCE
#PROXY_FIX=True
#PUBLIC_DIR=os.path.join(config_dir, os.pardir, 'build', 'static')
#SECRET_KEY=NODEFAULT
SECRET_KEY=fixme
#SWAGGER_UI=False # to enable swagger UI console (for test only)
#TEMP_DIR=/data/tmp
TEMP_DIR=gettempdir() # trash dir for temp files being cleaned regularly
#TESTING=False
#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
#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
# for flask mail
#MAIL_BCC=NODEFAULT
#MAIL_DEBUG=MAIL_SUPPRESS_SEND | False
#MAIL_DEFAULT_SENDER=NODEFAULT
MAIL_DEFAULT_SENDER=fixme
#MAIL_PASSWORD=NODEFAULT
#MAIL_PORT=587
#MAIL_SERVER=localhost
MAIL_SERVER=fixme
#MAIL_SUPPRESS_SEND=True
#MAIL_USE_TLS=True
#MAIL_USE_SSL=False
#MAIL_USERNAME=NODEFAULT
MAIL_USERNAME=fixme
# 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/)
# 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_RESULT_BACKEND_TRANSPORT_OPTIONS={} # cast=eval
CELERY_RESULT_BACKEND_TRANSPORT_OPTIONS={ 'master_name': 'mymaster' }
# 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
#MERGIN_BASE_URL=http://localhost:5000
#MERGIN_LOGO_URL= # for link to logo in emails
#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