-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prod.env
159 lines (89 loc) · 3.85 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
# RENAME THIS FILE TO .prod.env
# 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=**[email protected]
#DEBUG=FLASK_DEBUG | False
#LOCAL_PROJECTS=os.path.join(config_dir, os.pardir, os.pardir, 'projects') # for local storage type
LOCAL_PROJECTS=/data/live
#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=**"changeme"
#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
#TESTING=False
#VERSION=get_version()
# Mergin DB related
# DB_APPLICATION_NAME=mergin
#DB_DATABASE=mergin
#DB_HOST=127.0.0.1
DB_HOST=db
DB_PASSWORD=**some password without special characters
#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=**"changeme"
#WTF_CSRF_ENABLED=True
#WTF_CSRF_TIME_LIMIT=3600 * 24 # in seconds
MAIL_BCC=**[email protected]
#MAIL_DEBUG=MAIL_SUPPRESS_SEND | False
#MAIL_DEFAULT_SENDER=NODEFAULT
MAIL_DEFAULT_SENDER=**[email protected]
MAIL_PASSWORD=**generatethepassword
MAIL_PORT=**587
#MAIL_SERVER=localhost
MAIL_SERVER=**smtp.gmail.com
MAIL_SUPPRESS_SEND=False
MAIL_USE_TLS=**True
#MAIL_USE_SSL=False
#MAIL_USERNAME=NODEFAULT
MAIL_USERNAME=**[email protected]
# 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=**https://mysub.domain.net
MERGIN_LOGO_URL=**https://domain.net/image_url/somelogo.png
COLLECT_STATISTICS=False
#SERVICE_ID # should be random uuid
# global workspace related bits
# GLOBAL_WORKSPACE mergin
# GLOBAL_STORAGE 1024 * 1024 * 1024
GLOBAL_STORAGE=10737418240
# GLOBAL_READ False
GLOBAL_READ=1
# GLOBAL_WRITE False
# GLOBAL_ADMIN False