-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathapplication.yml
479 lines (413 loc) · 13 KB
/
application.yml
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
---
grails:
# serverURL: "http://localhost:8081/ws"
# server:
# port: 8081
# servlet:
# contextPath: '/ws'
cors:
# using ala-cors-plugin instead of grailsCorsFilter
enabled: true
profile: web
codegen:
defaultPackage: au.org.ala.spatial.service
config:
locations:
- file:/data/spatial-service/config/spatial-service-config.yml
spring:
transactionManagement:
proxies: false
gorm:
reactor:
# Whether to translate GORM events into Reactor events
# Disabled by default for performance reasons
events: false
controllers:
upload:
maxFileSize: 524288000
maxRequestSize: 524288000
info:
app:
name: '@info.app.name@'
version: '@info.app.version@'
grailsVersion: '@info.app.grailsVersion@'
build:
date: '@info.app.build.date@'
spring:
main:
banner-mode: "off"
groovy:
template:
check-template-location: false
# Spring Actuator Endpoints are Disabled by Default
endpoints:
enabled: false
jmx:
enabled: true
---
grails:
mime:
disable:
accept:
header:
userAgents:
- Gecko
- WebKit
- Presto
- Trident
types:
all: '*/*'
atom: application/atom+xml
css: text/css
csv: text/csv
form: application/x-www-form-urlencoded
html:
- text/html
- application/xhtml+xml
js: text/javascript
json:
- application/json
- text/json
multipartForm: multipart/form-data
pdf: application/pdf
rss: application/rss+xml
text: text/plain
hal:
- application/hal+json
- application/hal+xml
xml:
- text/xml
- application/xml
urlmapping:
cache:
maxsize: 1000
controllers:
defaultScope: singleton
converters:
encoding: UTF-8
views:
default:
codec: html
gsp:
encoding: UTF-8
htmlcodec: xml
codecs:
expression: html
scriptlets: html
taglib: none
staticparts: none
spring:
bean:
packages:
- 'au.org.ala.layers'
endpoints:
jmx:
unique-names: true
skin:
fluidLayout: true
---
#
# au.org.ala.spatial.service config
#
data:
dir: '/data/spatial-data'
gdal:
dir: "/usr/local/bin/"
# To use a remote geoserver instance, set geoserver.remote.geoserver_data_dir to the geoserver_data_dir path on the
# remote server. This will cause layer files to be copied to geoserver_data_dir/data/
remote:
geoserver_data_dir: '/data/geoserver_data_dir'
shpResolutions:
- 0.5
- 0.25
- 0.1
- 0.05
grdResolutions:
- 0.5
- 0.25
- 0.1
- 0.05
- 0.01
biocacheServiceUrl: 'https://biocache.ala.org.au/ws'
biocacheUrl: 'https://biocache.ala.org.au'
openstreetmap:
url: 'https://spatial.ala.org.au/osm'
slave.enable: true
service.enable: true
spatialService:
url: "https://spatial.ala.org.au/ws"
serviceKey: ""
batch_sampling_passwords: ''
batch_sampling_points_limit: 1000000
batch_sampling_fields_limit: 1000
batch_thread_count: 3
grid_buffer_size: 40960
occurrence_species_records_filename: /data/ala/data/layers/process/density/current/records
---
#
# au.org.ala.spatial.slave config
#
spatialService.url: "http://localhost:8080/ws"
data.dir: "/data/spatial-data"
shp2pgsql.path: "/usr/bin/shp2pgsql"
gdal.dir: "/usr/bin/"
gdm.dir: "/data/spatial-data/modelling/gdm/DoGdm"
# 900000ms=15 minutes
gdm.timeout: 900000
aloc.timeout: 900000
maxent.timeout: 900000
# 30000ms
controller.timeout: 30000
# 36000000=10 hours
admin.timeout: 36000000
aloc.xmx: "6G"
aloc.threads: 4
maxent.mx: "1G"
maxent.threads: 4
sampling.threads: 4
slaveKey: ""
serviceKey: ""
# time between pushing status updates to the master for a task
statusTime: 5000
retryCount: 10
retryTime: 30000
# taskTimeoutTime
taskTimeoutTime: 900000
task:
general:
threads: 10
admin:
threads: 4
continueOnRestart: true
#
# CAS SETTINGS
#
# NOTE: Some of these will be ignored if default_config exists
security:
cas:
casServerName: 'https://auth-test.ala.org.au'
loginUrl: 'https://auth-test.ala.org.au/cas/login'
logoutUrl: 'https://auth-test.ala.org.au/cas/logout'
casServerUrlPrefix: 'https://auth-test.ala.org.au/cas'
bypass: false # set to true for non-ALA deployment
gateway: false
uriExclusionFilterPattern: [ '/assets.*', '/images.*', '/css.*', '/js.*', '/less.*' ]
uriFilterPattern: [ '/alaAdmin/*', '/alaAdmin' ]
#if false, ticket params always proceed
#true, only processes urls listed in authenticateOnlyIfLoggedInFilterPattern
applyUriFiltersToTicketValidation: false
authenticateOnlyIfLoggedInFilterPattern: [ '/master', '/master/*', '/manageLayers', '/manageLayers/*', '/admin', '/admin/*', '/layers/view/more/*', '/layer/download/*', '/workflow/*', '/workflow' ]
disableCAS: true
ignoreCase: true
authCookieName: ALA-Auth-Test
enabled: false
oidc:
enabled: true
discovery-uri: 'https://auth-test.ala.org.au/cas/oidc/.well-known'
clientId: 'change me'
secret: 'change me'
allowUnsignedIdTokens: true
scope: 'openid profile email ala roles'
alaUseridClaim: username
logoutAction: cognito
jwt:
enabled: true
discoveryUri: https://auth-test.ala.org.au/cas/oidc/.well-known
fallbackToLegacyBehaviour: true
core:
roleAttribute: ala:role
apikey:
enabled: true
auth:
serviceUrl: https://auth-test.ala.org.au/apikey/
check:
serviceUrl: https://auth-test.ala.org.au/apikey/ws/check?apikey=
userdetails:
serviceUrl: https://auth-test.ala.org.au/userdetails/
#webservice:
# jwt: true
# jwt-scopes: openid users/read
# client-id: second-client-id-for-machine-to-machine-comms
# client-secret: second-client-secret-for-machine-to-machine-comms
auth.admin_role: "ROLE_ADMIN"
app.http.header.userId: "X-ALA-userId"
headerAndFooter.baseURL: 'https://www.ala.org.au/commonui-bs3-2019'
headerAndFooter.version: '2'
ala.baseURL: 'https://www.ala.org.au'
bie.baseURL: 'https://bie.ala.org.au'
bie.searchPath: '/search'
namematching.url: 'https://namematching-ws.ala.org.au'
records.url: 'https://archives.ala.org.au/archives/exports/lat_lon_taxon.zip'
api_key: ''
lists.url: 'https://lists.ala.org.au'
collections.url: 'https://collections.ala.org.au'
sandboxHubUrl: 'https://sandbox.ala.org.au/ala-hub'
sandboxBiocacheServiceUrl: 'https://sandbox.ala.org.au/biocache-service'
phyloServiceUrl: 'https://phylolink.ala.org.au'
spatialHubUrl: 'https://spatial.ala.org.au'
gazField: 'cl915'
userObjectsField: 'cl1083'
apiKeyCheckUrlTemplate: 'https://auth.ala.org.au/apikey/ws/check?apikey={0}'
#spatialService.remote: "https://spatial.ala.org.au/ws"
journalmap.api_key: ''
journalmap.url: 'https://www.journalmap.org/'
# For side by side installation with layers-service, analysis-service
legacy.workingdir: '/data/ala/data/alaspatial/'
legacy.enabled: true
#legacy compatability type
#"link" = link legacy files into new locations
#"copy" = copy legacy files into new locations
#"move" = move legacy files into new locations
#legacy.type="link"
legacy.ANALYSIS_LAYER_FILES_PATH: '/data/ala/data/layers/analysis/'
legacy.LAYER_FILES_PATH: '/data/ala/data/layers/ready'
legacy.ALASPATIAL_OUTPUT_PATH: '/data/ala/runtime/output'
grails.plugin.elfinder.rootDir: '/data/spatial-service'
i18n.override.dir: '/data/spatial-service/config/i18n/'
skin:
orgNameLong: 'Atlas of Living Australia'
orgNameShort: 'ALA'
favicon: 'https://www.ala.org.au/app/uploads/2019/01/cropped-favicon-32x32.png'
#layers-store config
#Threads created for each batch intersection and each individual shape file
layers_store.BATCH_THREAD_COUNT: 3
#Set LAYER_INDEX_URL to use REMOVE layer intersections.
#layers_store.LAYER_INDEX_URL: https://spatial.ala.org.au/layers-service
#Use local layer files for sampling or the /intersect/batch service provided by LAYER_INDEX_URL
#layers_store.LOCAL_SAMPLING: false
layers_store.LOCAL_SAMPLING: true
# Set intersect config reload time in ms
layers_store.CONFIG_RELOAD_WAIT: 12000000
#Comma separated shape file fields to preload, or 'all'
#layers_store.PRELOADED_SHAPE_FILES: all
#layers_store.PRELOADED_SHAPE_FILES: cl22,cl20
# Grid intersection buffer size in bytes. Must be multiple of 64.
# Only applies to grids > 80MB.
# layers_store.GRID_BUFFER_SIZE=4096
layers_store.GRID_BUFFER_SIZE: 40960
# Number of GridCacheReader objects to open.
layers_store.GRID_CACHE_READER_COUNT: 5
# layers_store ingestion
layers_store.CAN_INGEST_LAYERS: false
layers_store.CAN_UPDATE_LAYER_DISTANCES: false
layers_store.CAN_UPDATE_GRID_CACHE: false
layers_store.CAN_GENERATE_ANALYSIS_FILES: false
layers_store.CAN_INTERSECT_LAYERS: false
layers_store.CAN_GENRATE_THUMBNAILS: false
#geoserver styles with the name <fieldId>_style exist. e.g. cl21_style
layers_store.FIELD_STYLES: true
layers_store.GEONETWORK_URL: 'https://spatial.ala.org.au/geonetwork'
distributions.cache.dir: "/data/${appName}/mapCache/"
distributions.geoserver.image.url: "/ALA/wms?service=WMS&version=1.1.0&request=GetMap&layers=ALA:aus1,ALA:Distributions&styles=&bbox=109,-47,157,-7&srs=EPSG:4326&format=image/png&width=400&height=400&viewparams=s:"
#download.layer.licence_levels: ["1"]
download.layer.licence_levels: [ ]
reporting.excludedUsers: [ '1901','92092','71707','1493','53099','34','9965','47075','27078','44','9200','82292','10549','9048','11359','61','35022','13','28057','19807','27583','27190','35','48604','47326','35774','8443','8516','46293','4228','89299','89300','28712' ]
---
hibernate:
# flush mode changed in Grails 3.3 / Gorm 6.1 from AUTO to COMMIT
# This means each db write should be in a transaction.
cache:
queries: false
use_second_level_cache: false
use_query_cache: false
# spring-session config
spring:
session:
store-type: "none" # "redis"
# redis:
# host: "localhost"
# port: 6379
# password: ""
#logging:
# level:
# root: INFO
geoserver:
canDeploy: true
spatialservice:
#if colocated, geoserver will load data from spatial service data folder, /data/spatial-data by default
colocated: true
remote:
#In some cases, geoserver need to know its data folder.
geoserver_data_dir: "/data/geoserver_data_dir"
environments:
development:
grails:
server:
use-forward-headers: true
serverURL: http://localhost:8081/ws
server:
port: 8081
servlet:
context-path: '/ws'
gdal:
dir: "/Library/Frameworks/GDAL.framework/Programs"
spatialHubUrl: "http://devt.ala.org.au:8079/"
# Slave config
spatialService:
url: "http://devt.ala.org.au:8081/ws"
remote: "https://spatial-test.ala.org.au/ws"
geoserver:
# use localhost to play nice with locally running geoserver docker instance.
url: 'http://localhost:8080/geoserver'
#url: 'https://spatial-test.ala.org.au/geoserver'
username: 'admin'
password: 'geoserver'
dataSource:
pooled: true
jmxExport: true
driverClassName: org.postgresql.Driver
dialect: org.hibernate.spatial.dialect.postgis.PostgisPG9Dialect
url: 'jdbc:postgresql://localhost:5432/layersdb'
dbCreate: update
username: layers
password: layers
# logSql: true
test:
dataSource:
dbCreate: update
url: jdbc:h2:mem:testDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE
production:
dataSource:
#aws-spatial-prod.ala.org.au
dbCreate: update
logSql: false
dialect: org.hibernate.spatial.dialect.postgis.PostgisPG9Dialect
properties:
jmxEnabled: true
initialSize: 5
maxActive: 50
minIdle: 5
maxIdle: 25
maxWait: 10000
maxAge: 600000
timeBetweenEvictionRunsMillis: 5000
minEvictableIdleTimeMillis: 60000
validationQuery: SELECT 1
validationQueryTimeout: 3
validationInterval: 15000
testOnBorrow: true
testWhileIdle: true
testOnReturn: false
jdbcInterceptors: ConnectionState
defaultTransactionIsolation: 2 # TRANSACTION_READ_COMMITTED
openapi:
title: SpatialService REST services
description: REST services for interacting with the spatial-service webapp
terms: https://www.ala.org.au/terms-of-use
contact:
name: Support
email: support@ala.org.au
license:
name: Mozilla Public License 1.1
url: https://www.mozilla.org/en-US/MPL/1.1/
version: '@info.app.version@'
cachetimeoutms: 4000
# Internal sandbox service for processing uploaded CSV files
sandboxEnabled: true
sandboxSolrUrl: http://localhost:8983/solr
sandboxSolrCollection: sandbox
sandboxThreadCount: 2
pipelinesCmd: "java -Dspark.local.dir=/data/spatial-data/sandbox/tmp -Djava.io.tmpdir=/data/spatial-data/sandbox/tmp -Dlog4j.configuration=file:/data/spatial-data/modelling/la-pipelines/log4j.properties -cp /data/spatial-data/modelling/la-pipelines/pipelines-2.19.0-SNAPSHOT-shaded.jar"
pipelinesConfig: "--config=/data/spatial-data/modelling/la-pipelines/la-pipelines.yaml"
# For the copying of layers between spatial-service instances, a JWT with the following role must be provided in the `/manageLayers/remote` page.
layerCopyRole: ROLE_ADMIN