-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathapplication.yml
630 lines (560 loc) · 19.9 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
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
---
grails:
cors:
enabled: true
profile: web
codegen:
defaultPackage: au.org.ala.spatial.portal
config:
locations:
- file:/data/spatial-hub/config/spatial-hub-config.properties
- file:/data/spatial-hub/config/spatial-hub-config.yml
- file:/data/spatial-hub/config/spatial-hub-config.groovy
# - file:C:\\Users\\Georg Neubauer\\IdeaProjects\\REMDB_2021_servers\\backups_30_09_2021\\data\\spatial-hub\\config\\spatial-hub-config.yml
# - file:D:\\reinhardt\\firma\\Biodiversity\\working\\data\\spatial-hub\\spatial-hub-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: 10000000
maxRequestSize: 10000000
info:
app:
name: '@info.app.name@'
version: '@info.app.version@'
grailsVersion: '@info.app.grailsVersion@'
spring:
main:
banner-mode: "off"
groovy:
template:
check-template-location: false
http:
multipart:
max-file-size: 50MB
max-request-size: 50MB
server:
session:
timeout: 7200 # seconds, 2 hours
tomcat:
port-header: 'X-Forwarded-Port'
protocol-header: 'X-Forwarded-Proto'
remote-ip-header: 'X-Forwarded-For'
# 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
assets:
minifyOptions:
excludes:
- '**/*.min.js'
enableGzip: true
cache:
enabled: true
endpoints:
jmx:
unique-names: true
security:
cas:
casServerName: 'https://auth.ala.org.au'
uriFilterPattern: '/alaAdmin,/alaAdmin.*'
uriExclusionFilterPattern: '/portal/q.*,/portal/messages.*,/portal/sessionCache.*,/static.*,/assets.*'
authenticateOnlyIfLoggedInPattern: '/portal.*,/,/portal/config.*,/portal/i18n.*,/hub/[a-zA-Z0-9]+'
loginUrl: 'https://auth.ala.org.au/cas/login'
logoutUrl: 'https://auth.ala.org.au/cas/logout'
gateway: false
casServerUrlPrefix: 'https://auth.ala.org.au/cas'
bypass: false # set to true for non-ALA deployment
disableCAS: false
roleAttribute: authority
ignoreCase: true
authCookieName: ALA-Auth
autocompleteUrl: 'https://bie.ala.org.au/ws/search/auto.jsonp'
auth:
admin_role: ROLE_ADMIN
app:
http:
header:
userId: "X-ALA-userId"
headerAndFooter:
baseURL: 'https://www.ala.org.au/commonui-bs3-2019'
version: '2'
#ala:
# baseURL: 'https://www.ala.org.au'
bie:
baseURL: 'https://bie.ala.org.au'
searchPath: '/search'
bieService:
baseURL: 'https://bie.ala.org.au/ws'
userdetails:
baseUrl: 'https://auth.ala.org.au/userdetails'
favicon:
url: 'https://www.ala.org.au/wp-content/themes/ala2011/images/favicon.ico'
skin:
header: true
footer: true
fluidLayout: true
layout: 'portal'
orgNameLong: 'Atlas of Living Australia'
favicon: 'https://www.ala.org.au/app/uploads/2019/01/cropped-favicon-32x32.png'
layersService:
url: 'https://localhost:8085/spatial-service/'
lists:
url: 'https://lists.ala.org.au'
threatenedSpeciesUrl: '/ws/speciesList/?isThreatened=eq:true&isAuthoritative=eq:true'
invasiveSpeciesUrl: '/ws/speciesList/?isInvasive=eq:true&isAuthoritative=eq:true'
facets: true
migratoryDR: 'dr1005'
iconicSpeciesDR: 'dr781'
journalmap:
url: 'https://www.journalmap.org'
collections:
url: 'https://collections.ala.org.au'
sandbox:
url: 'https://sandbox.ala.org.au/ala-hub'
uiUrl: 'https://sandbox.ala.org.au'
sandboxService:
url: 'https://sandbox.ala.org.au/biocache-service'
gazField: 'cl915'
userObjectsField: 'cl1082'
biocache:
url: 'https://biocache.ala.org.au'
biocacheService:
url: 'https://biocache.ala.org.au/ws'
#Facets to ignore in the biocache grouped/facets service
default_facets_ignored: 'data_resource_uid,data_provider_uid,species,collection_uid,institution_code_name,institution_uid,uncertainty'
custom_facets:
Attribution:
- Data Provider;data_provider
- Collection;collection_name
- Data Resource;data_resource
- Institution;institution_name
Occurrence:
- Year;occurrence_year
sampling:
url: 'https://sampling.ala.org.au/sampling-service'
geoserver:
url: 'https://spatial.ala.org.au/geoserver'
flickr:
url: 'https://api.flickr.com/services/rest/?method='
searchPhotos: 'flickr.photos.search'
# licensesInfo: 'flickr.photos.licenses.getInfo'
# licenses data is found at https://api.flickr.com/services/rest/?method=flickr.photos.licenses.getInfo&api_key=<api_key>&format=json&nojsoncallback=1
licensesData: {"licenses":{"license":[{"id":"0","name":"All Rights Reserved","url":""},{"id":"4","name":"Attribution License","url":"https://creativecommons.org/licenses/by/2.0/"},{"id":"6","name":"Attribution-NoDerivs License","url":"https://creativecommons.org/licenses/by-nd/2.0/"},{"id":"3","name":"Attribution-NonCommercial-NoDerivs License","url":"https://creativecommons.org/licenses/by-nc-nd/2.0/"},{"id":"2","name":"Attribution-NonCommercial License","url":"https://creativecommons.org/licenses/by-nc/2.0/"},{"id":"1","name":"Attribution-NonCommercial-ShareAlike License","url":"https://creativecommons.org/licenses/by-nc-sa/2.0/"},{"id":"5","name":"Attribution-ShareAlike License","url":"https://creativecommons.org/licenses/by-sa/2.0/"},{"id":"7","name":"No known copyright restrictions","url":"https://www.flickr.com/commons/usage/"},{"id":"8","name":"United States Government Work","url":"http://www.usa.gov/copyright.shtml"},{"id":"9","name":"Public Domain Dedication (CC0)","url":"https://creativecommons.org/publicdomain/zero/1.0/"},{"id":"10","name":"Public Domain Mark","url":"https://creativecommons.org/publicdomain/mark/1.0/"}]},"stat":"ok"}
apiKey: ''
secret: ''
tags: ''
extra: 'geo,date_taken,owner_name,license,url_t,url_s,url_m,title'
contentType: ''
geoContext: ''
filter: '&text=landscape'
# flickr always returns 250 per page regardless the value of per_page passed in,
# so we config total number of photos to display at one time ourselves
nbrOfPhotosToDisplay: 15
viewConfig:
json: 'view-config.json'
sessions:
dir: '/data/spatial-hub/sessions'
admin_role: 'ROLE_ADMIN'
# List of valid user roles.
# Use '*' for ANY role (login will be required).
# Use an empty list for 'login is not required'
user_roles:
- '*'
# When using skin.layout='portal' enable google analytics by setting the googleAnalyticsId
googleAnalyticsId:
speciesDotSize: 5
speciesDotOpacity: 60
logger:
baseUrl: 'https://logger.ala.org.au/service'
webservice:
readTimeout: 60000
connectTimeout: 20000
cache:
headers:
enabled: true
control: 'max-age=36000 public must-revalidate'
phylolink:
url: 'https://phylolink.ala.org.au'
apiKeyCheckUrlTemplate: 'https://auth.ala.org.au/apikey/ws/check?apikey={0}'
character:
encoding: UTF-8
http:
so:
timeout: 10000
timeout: 10000
biocollect:
loginUrl: 'https://biocollect.ala.org.au'
url: 'https://biocollect.ala.org.au'
areaReport:
- name: 'Citizen science projects'
count: "https://biocollect.ala.org.au/acsa/nocas/geoService?max=0&geoSearchJSON=_geoSearchJSON_"
link: "https://biocollect.ala.org.au/acsa#geoSearch%3D_geoSearchEncoded_"
- name: 'Merit Projects'
count: "https://biocollect.ala.org.au/merit/nocas/geoService?max=0&geoSearchJSON=_geoSearchJSON_"
link: "https://biocollect.ala.org.au/merit?geoSearchJSON=_geoSearchJSON_"
bccvl:
login:
url: 'https://app.bccvl.org.au/bccvl/oauth2/authorize?client_id=F031d7ce-abb0-11e6-a678-0242ac120005&response_type=token&redirect_uri='
post:
url: 'https://app.bccvl.org.au/API/dm/v1/import_ala_data'
keep:
alive:
timeout:
ms: 180000
startup:
lat: -25
lng: 131
zoom: 4
baselayer:
default: 'google_roadmaps'
baselayers:
google_roadmaps:
name: 'Streets'
layerType: 'ROADMAP'
type: 'google'
exportType: 'normal'
link: 'https://www.google.com/intl/en_au/help/terms_maps.html'
projections: ['3857']
google_hybrid:
name: 'Hybrid'
layerType: 'HYBRID'
type: 'google'
exportType: 'hybrid'
link: 'https://www.google.com/intl/en_au/help/terms_maps.html'
projections: ['3857']
outline:
name: 'Outline'
type: 'wms'
url: 'https://spatial.ala.org.au/geoserver/wms?'
layerParams:
layers: 'ALA:world'
format: 'image/png'
continuousWorld: true
exportType: 'outline'
# osm_projection:
# name: 'Open Street Map'
# type: 'wms'
# url: 'https://spatial.ala.org.au/geoserver/wms?'
# layerParams:
# # cascade WMS layer in geoserver
# layers: 'ALA:osm'
# format: 'image/png'
# continuousWorld: true
# exportType: 'minimal'
# link: 'https://www.openstreetmap.org/about'
# invalidProjections: ['3857']
osm:
name: 'OpenStreetMap'
url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'
type: 'xyz'
exportType: 'minimal'
link: 'https://www.openstreetmap.org/about'
projections: ['3857']
layerParams:
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
google_satellite:
name: 'Satellite'
layerType: 'SATELLITE'
type: 'google'
exportType: 'satellite'
link: 'https://www.google.com/intl/en_au/help/terms_maps.html'
projections: ['3857']
defaultareas:
- name: 'Australia'
fqs: ['longitude:[112 TO 154]', 'latitude:[-44 TO -9]']
wkt: 'POLYGON((112.0 -44.0,154.0 -44.0,154.0 -9.0,112.0 -9.0,112.0 -44.0))'
areaSqKm: 16322156.76
bbox: [112, -44, 154, -9]
- name: 'World'
fqs: []
wkt: 'POLYGON((-179.9999 -89.9999,179.9999 -89.9999,179.9999 89.9999,-179.9999 89.9999,-179.9999 -89.9999))'
areaSqKm: 510000000
bbox: [-180, -90, 180, 90]
presetWMSServers:
- name: "AusCover"
url: "http://data.auscover.org.au/geoserver/wms?request=getCapabilities"
- name: "Geoserver IMOS"
url: "http://geoserver.imos.org.au/geoserver/wms?REQUEST=GetCapabilities"
- name: "GA"
url: "http://services.ga.gov.au/gis/services/GA_Surface_Geology/MapServer/WMSServer?request=GetCapabilities&service=WMS"
- name: "Geofabric BOM"
url: "http://geofabric.bom.gov.au/simplefeatures/ows?service=WMS&request=GetCapabilities"
allowProxy:
server: 'data.auscover.org.au,data.auscover.org.au:80,geoserver.imos.org.au,www.ga.gov.au/gis,geofabric.bom.gov.au,doi.ala.org.au,doi-test.ala.org.au,ga.gov.au,aodn.org.au'
getMapExamples:
- name: "Fractional Cover CLW - Non-PS Veg - 2012.297"
url: "http://data.auscover.org.au/geoserver/ows?SERVICE=WMS&REQUEST=GetMap&LAYERS=clw:FractCover.V2_2.NPV&FORMAT=image/png&SRS=epsg:3857&TRANSPARENT=true&VERSION=1.3.0&CRS=EPSG:3857&EXCEPTIONS=INIMAGE&STYLES="
wms:
intersect: true
fq:
excludeAbsent: "-occurrence_status:absent"
# fq applied to every biocache-service query
qc: ""
# (mandatory) projections.#.definition - usage new L.Proj.CRS(code, proj4js, params)
# projections.#.definition.code = code
# projections.#.definition.proj4js = proj4js definition (mandatory when not 3857 or 4326)
# projections.#.definition.params = parameters (optional)
#
# (optional) projections.#.origin (startup lat, lon, zoom is used when origin is not defined)
# projections.#.origin.latitude = default latitude
# projections.#.origin.longitude = default longitude
# projections.#.origin.zoom = default zoom
projection:
default: '3857'
projections:
3857:
label: 'Pseudo-Mercator -- Spherical Mercator'
definition:
code: 'EPSG:3857' # leaflet supported, uses startup lat,lon,zoom
# Uncomment to include these additional projections
4326:
label: 'World Geodetic System 1984'
definition:
code: 'EPSG:4326' # leaflet supported, uses startup lat,lon,zoom
3031:
label: 'Antarctic Polar Stereographic'
definition:
code: 'EPSG:3031'
proj4js: '+proj=stere +lat_0=-90 +lat_ts=-71 +lon_0=0 +k=1 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'
params: { resolutions: [ 8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5 ] }
origin:
latitude: -80
longitude: 0
zoom: 1
3575:
label: 'North Pole LAEA Europe'
definition:
code: 'EPSG:3575'
proj4js: '+proj=laea +lat_0=90 +lon_0=10 +x_0=0 +y_0=0 +ellps=WGS84 +datum=WGS84 +units=m +no_defs'
params: { resolutions: [ 8192, 4096, 2048, 1024, 512, 256, 128, 64, 32, 16, 8, 4, 2, 1, 0.5 ]}
origin:
latitude: 60
longitude: 0
zoom: 1
#
# spApp configuration
#
spApp:
# show "map options" and associated controls in the list of layers
mapOptions: true
# show map control for collapsing up and hiding the header
collapseUp: true
# show map control for collapsing left and hiding left panel
collapseLeft: true
# show map control that displays the cursor coordinates (on the lower left of the map, above the scale)
cursorCoordinates: true
# show map control that displays the quicklinks
quicklinks: true
# show "map options" button "Add WMS Layer"
optionsAddWms: true
# show "map options" button "Download Map"
optionsDownloadMap: true
# show "map options" button "Reset Map"
optionsResetMap: true
# show "map options" section to change the base map
optionsSelectBaseMap: true
# load the layerDistances data to display the layer selection list's traffic light indicator
layerDistances: true
# show the "add to map | area | google location search" option
googleLocation: true
# show the left panel by default
leftPanel: true
# show the header by default
header: true
# list charts to show on species info page
charts:
genus:
title: "By genus"
chartType: "doughnut"
emptyValueMsg: "Genus not specified"
hideEmptyValues: true
disableBiocacheQueryOnClick: true
collection_uid:
title: "By collection"
chartType: "doughnut"
emptyValueMsg: "Collection not specified"
hideEmptyValues: true
disableBiocacheQueryOnClick: true
assertions:
title: "By data assertion"
chartType: "horizontal-bar"
emptyValueMsg: "Assertion not specified"
hideEmptyValues: true
disableBiocacheQueryOnClick: true
type_status:
title: "By type status (as % of all type specimens)"
chartType: "doughnut"
emptyValueMsg: "Type status not specified"
hideEmptyValues: true
disableBiocacheQueryOnClick: true
state_conservation:
title: "By state conservation status"
chartType: "bar"
emptyValueMsg: "State conservation not specified"
hideEmptyValues: true
disableBiocacheQueryOnClick: true
month:
title: "By month"
chartType: "bar"
emptyValueMsg: "Month not specified"
hideEmptyValues: true
disableBiocacheQueryOnClick: true
decade:
title: "By decade"
chartType: "bar"
emptyValueMsg: "Year not specified"
hideEmptyValues: true
disableBiocacheQueryOnClick: true
rangeDataTypes:
- 'tint'
- 'int'
- 'tdouble'
- 'tfloat'
- 'tdate'
- 'float'
- 'double'
- 'date'
numberOfIntervalsForRangeData: 7
#
# portal.gsp layout options
#
#extraLinkUrl: "https://spatial-old.ala.org.au"
#extraLinkText: "Old site"
date.facet: 'occurrence_date'
date.min: '1780-01-01'
date.max: '2030-01-01'
#
# Override the list of grouped facets from biocache-service (biocacheService.url/search/grouped/facets).
# This is used in a drop down list within the 'Edit species layer' section that is used to colour or facet
# upon the species layer.
#
#groupedFacets:
# - title: 'group 1 title'
# facets:
# - field: "SOLR field name" (mandatory)
# sort: 'index' for non-numeric fields OR 'count' or numeric fields (optional, default is index)
# description: 'label for the field' (optional, default is the SOLR field name)
# dwcTerm: 'Darwin Core term' (optional)
# i18nValues: true to translate facet values using biocache-service /facets/i18n OR false (optional, default is false)
#
# Remove fields that are retrieved from biocache-service (biocacheService.url/search/grouped/facets) and
# (biocacheService.url/index/fields)
#
#fieldsIgnored:
# - field1
# - field2
#
# Include or Exclude the 'Search facets...' option. This is used in a drop down list within the 'Edit species layer'
# section that is used to colour or facet upon the species layer.
#
facet.search: true
#
# Include or Exclude the grouped facet listing. These grouped facets appear at the end of the drop down list
# within the 'Edit species layer' section that is used to colour or facet upon the species layer.
#
facet.list: true
#
# Enabled multiple species layer filters within the 'Edit species layer' section.
#
filters.enabled: true
#
# Enable workflow header button
#
workflow.enabled: true
#
# List of workflowIds that operate on a species layer. These appear when clicking on the 'default filter' 'filter'
# in the `Edit species layer` section.
#
# These workflows will be forced to operate on the selected layer and should be public.
#
#workflow.speciesFilters: [ { name: 'CSDM default filter', workflowId: 52 } ]
workflow.speciesFilters: []
## spring-session config
spring:
session:
store-type: "none" # "redis"
# redis:
# host: "localhost"
# port: 6379
# password: ""
# Used by the DOI dataset import and DOI generation when exporting datasets
#doiService:
# url: "https://doi.ala.org.au"
# searchFilter:
# applicationMetadata:
# applicationName: "CSDM"
# hubName: "CSDM"
# reasonTypeId: 13
# sourceTypeId: 10002
---
environments:
development:
server:
port: 8087
use-forward-headers: true
grails:
serverURL: http://devt.ala.org.au:8087
test:
production:
assets:
bundle: true