forked from jjrom/resto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.env
210 lines (168 loc) · 8.11 KB
/
config.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
198
199
200
201
202
203
204
205
206
207
208
209
210
### =====================================================================
### Title : resto environment configuration
### Url : https://github.com/jjrom/resto/blob/master/config.env
###
### Date : 2019-06-02
### Author : Jérôme Gasperi - [email protected]
### License : Apache 2.0
### =====================================================================
### =====================================================================
### Core configuration
### =====================================================================
### [IMPORTANT] Application public endpoint url as it will be displayed in results (WITHOUT TRAILING SLASH !)
### Used as identifier for /stac identifier endpoint
PUBLIC_ENDPOINT=http://127.0.0.1:5252
### resto server exposed port
RESTO_EXPOSED_PORT=5252
### Default timezone used server side
#TIMEZONE=Europe/Paris
### Comma separated list of supported languages
SUPPORTED_LANGUAGES=en,fr
### Data related "planet"
#PLANET=earth
### Permanent storage directory to store/retrieve files (e.g. user's avatar picture)
### Relative to PUBLIC_ENDPOINT if not starting with http
#STORAGE_PUBLIC_ENDPOINT=/static
### [IMPORTANT] Uncomment to change the default compose file (i.e. docker-compose.yml)
#COMPOSE_FILE=docker-compose.yml:docker-compose.dev.yml
### =====================================================================
### Documentation configuration
### =====================================================================
API_INFO_TITLE="Welcome to resto"
API_INFO_DESCRIPTION="A metadata catalog and search engine for geospatialized data"
API_HOST_DESCRIPTION="resto localhost server"
### =====================================================================
### Database configuration
### =====================================================================
### [IMPORTANT]
### - Set DATABASE_HOST to "restodb" if using a local containerized resto-database (see https://github.com/jjrom/resto-database) - this is the default
### - Set DATABASE_HOST to "host.docker.internal" if using a resto-database hosted on localhost (i.e. local PostgreSQL server)
### - Otherwise set DATABASE_HOST if resto-database is hosted on an external PostgreSQL server (i.e. not on localhost !)
###
DATABASE_HOST=restodb
### Database exposed port
#DATABASE_PORT=5432
### [IMPORTANT] Usually you should only change the DATABASE_USER_PASSWORD value and leave the other values untouched
DATABASE_NAME=resto
DATABASE_USER_NAME=resto
DATABASE_USER_PASSWORD=resto
### [IMPORTANT][WARNING] Do not modify the default value 'resto' unless you know what you are doing !!!
#DATABASE_COMMON_SCHEMA=resto
#DATABASE_TARGET_SCHEMA=resto
### True to use geometry_part table instead of feature to compute geometrical intersection
#USE_GEOMETRY_PART=false
### True to split input geometries that crosses -180/180
### [IMPORTANT] Set to false for geometries larger than half the earth globe - typically global product for instance
#SPLIT_GEOMETRY_ON_DATELINE=true
### =====================================================================
### Security configuration
### =====================================================================
### [IMPORTANT] The resto "admin" account has access to all resto API
### [SECURITY][IMPORTANT] Change password in production mode
ADMIN_USER_NAME=admin
ADMIN_USER_PASSWORD=admin
### [SECURITY][IMPORTANT] Passphrase used server side for JWT token forgery
JWT_PASSPHRASE="Super secret passphrase"
### Authentication tokens validity duration (in seconds) - default is 100 days
#JWT_DURATION=8640000
### Shared links validity duration (in seconds)
#SHAREDLINK_DURATION=86400
### [IMPORTANT] Comma separated (No space !) list of http origin that have CORS access to server (leave empty for every http origin to have CORS access)
#CORS_WHITELIST=
### True to store all user queries to database
#STORE_QUERY=false
### STAC - only display child/items links with at least minMatch child/items
#CATALOG_MINMATCH=0
### Automatic user validation on activation
#USER_AUTOVALIDATION=true
### Automatic user activation i.e. do not verify email
### [SECURITY][IMPORTANT] Never set to true in production
#USER_AUTOACTIVATION=true
### Cache directory used to store Database queries
### Must be readable and writable for Webserver user
### If null then no cache is used
#USE_CACHE=false
### =====================================================================
### Search engine configuration
### =====================================================================
### Default number of search results returned by page if not specified in the request
#SEARCH_RESULTS_PER_PAGE=20
### Comma separated (No space !) list of fields that are sortable - DON'T ADD FIELDS UNLESS YOU KNOW WHAT YOU ARE DOING
### First field is the default sorting field
#SEARCH_SORTABLE_FIELDS=startDate,created
### Generic OpenSearch service description (i.e. when searching on all collections)
## [IMPORTANT] SEARCH_OPENSEARCH_SHORTNAME is equivalent to STAC collection id - so a best practice is to not uses spaces or special characters
SEARCH_OPENSEARCH_SHORTNAME=resto
SEARCH_OPENSEARCH_LONGNAME="resto search service"
SEARCH_OPENSEARCH_DESCRIPTION="Search on all collections"
SEARCH_OPENSEARCH_TAGS=resto
SEARCH_OPENSEARCH_DEVELOPER="Jérôme Gasperi"
SEARCH_OPENSEARCH_QUERY="europe 2015"
SEARCH_OPENSEARCH_ATTRIBUTION="Copyright 2018, All Rights Reserved"
### =====================================================================
### Sendmail configuration - use for user activation, reset password etc.
### =====================================================================
### Name display to users when they receive email from application
#SENDMAIL_SENDER_NAME=admin
### Email display to users when they receive email from application
### [IMPORTANT] It must be a valid email address otherwise you'll
### get an error when sending activation link to users
### SMTP relay configuration
### If not activate, no mail are sent
#SENDMAIL_SMTP_ACTIVATE=false
#SENDMAIL_SMTP_HOST=
#SENDMAIL_SMTP_PORT=465
### "ssl" or "tls"
#SENDMAIL_SMTP_SECURE=ssl
### 0: no debug, 1: error and message, 2: message only
#SENDMAIL_SMTP_DEBUG=0
#SENDMAIL_SMTP_USER=
#SENDMAIL_SMTP_PASSWORD=
### HTML endpoint to indicates to user that its account is successfully activated
#ACTIVATE_USER_ENDPOINT=http://localhost:9999/activate/{:token:}
### HTML endpoint for user to reset password
#RESET_PASSWORD_ENDPOINT=http://localhost:9999/resetPassword/{:token:}
### =====================================================================
### resto add-ons configuration
### =====================================================================
### Inside docker rnet network, itag server alias is "itag" and port is inner port "80" not the exposed one !
ADDON_TAG_ITAG_ENDPOINT=http://itag
#ADDON_TAG_ITAG_TAGGERS=political,physical
#ADDON_TAG_ADD_SEARCH_FILTERS=false
### =====================================================================
### Server configuration (nginx/php-fpm)
### =====================================================================
### PHP-FPM (uncomment to change values)
#PHP_FPM_PM=dynamic
#PHP_FPM_MAX_CHILDREN=100
#PHP_FPM_START_SERVERS=10
#PHP_FPM_MAX_REQUESTS=1024
#PHP_FPM_MIN_SPARE_SERVERS=3
#PHP_FPM_MAX_SPARE_SERVERS=19
#PHP_FPM_MEMORY_LIMIT=256M
#PHP_FPM_MAX_EXECUTION_TIME=300
#PHP_FPM_MAX_INPUT_TIME=60
## [IMPORTANT] Affect both upload_max_filesize and post_max_size
#PHP_FPM_UPLOAD_MAX_FILESIZE=20M
#PHP_OPCACHE_MEMORY_CONSUMPTION=512
#PHP_OPCACHE_INTERNED_STRINGS_BUFFER=64
#PHP_OPCACHE_MAX_WASTED_PERCENTAGE=5
#PHP_OPCACHE_ENABLE_PRELOADING=0
#PHP_OPCACHE_JIT_BUFFER_SIZE=100M
#PHP_OPCACHE_JIT=1255
## See https://geekflare.com/php-fpm-optimization/
#PHP_FPM_EMERGENCY_RESTART_TRESHOLD=10
#PHP_FPM_EMERGENCY_RESTART_INTERVAL=1m
#PHP_FPM_PROCESS_CONTROL_TIMEOUT=10s
### NGINX (uncomment to change values)
#NGINX_CLIENT_MAX_BODY_SIZE=1m
#NGINX_CLIENT_BODY_TIMEOUT=65
#NGINX_FASTCGI_BUFFERS=8 16k
#NGINX_FASTCGI_BUFFER_SIZE=32k
#NGINX_FASTCGI_BUSY_BUFFERS_SIZE=32k
#NGINX_FASTCGI_CONNECT_TIMEOUT=300
#NGINX_FASTCGI_SEND_TIMEOUT=300
#NGINX_FASTCGI_READ_TIMEOUT=300