-
Notifications
You must be signed in to change notification settings - Fork 2
/
application.yml
executable file
·93 lines (77 loc) · 3.52 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
# Override these properties in an external properties file or environment variable.
# See https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html
spring:
application:
# The name of the spring application.
name: gateway
# Dashboard config.
thymeleaf:
cache: false
enabled: true
prefix: classpath:/templates/
suffix: .html
server:
# The HTTP port to listen to when using an embedded Tomcat server.
port: 8181
# The AJP port to listen to when using an embedded Tomcat server. Leave blank if AJP connections
# are not needed.
# ajp:
# port:
# Default Elasticsearch gateway settings. These can be overridden in the ES route config for each
# tenant.
es:
# The names of CollectionSpace record types that are publicly accessible through Elasticsearch.
# This should be a comma-separated list of tenant-unqualified record types. If no value is given,
# all record types will be publicly accessible.
allowedRecordTypes: CollectionObject
# For each publicly accessible record type, specify the name of the Elasticsearch field to check to
# see if a specific record is published, and should be publicly accessible. Each record type
# specified in es.allowedRecordTypes should have a publishToField configured. Media records should
# also have a publishToField configured, even if Media is not specified in es.allowedRecordTypes.
# This allows the gateway to make an Elaticsearch query to check if a media record is published
# when an attempt is made to retrieve media through the REST API.
# Typically, values will have the format <schema>:<field name>.shortid
# If no value is given, all records of the type will be publicly accessible.
recordTypes:
CollectionObject:
publishToField: collectionobjects_common:publishToList.shortid
Media:
publishToField: media_common:publishToList.shortid
# Values that may exist in the Publish To field for records that are publicly accessible.
# This should be a comma-separated list of short ids.
allowedPublishToValues: cspacepub,all
zuul:
# By default authorization is a sensitive header that won't be passed downstream. Remove it, so
# we can send credentials.
sensitiveHeaders: Cookie,Set-Cookie
ignoredHeaders: Access-Control-Allow-Credentials,Access-Control-Allow-Origin
# routes:
# core-cspace-services:
# path: /core/cspace-services/**
# # The URL of the CollectionSpace REST API.
# url: http://localhost:8180/cspace-services
# # Credentials to use for connecting to the CollectionSpace REST API.
# username: reader@core.collectionspace.org
# password: reader
# core-es:
# path: /core/es/**
# # The URL of the Elasticsearch cluster (including index).
# url: http://localhost:9200/nuxeo
# materials-cspace-services:
# path: /materials/cspace-services/**
# url: http://localhost:8180/cspace-services
# username: reader@materials.collectionspace.org
# password: reader
# materials-es:
# path: /materials/es/**
# url: http://localhost:9200/materials
# # Override default ES settings.
# allowedRecordTypes: CollectionObject,Materialitem
# recordTypes:
# CollectionObject:
# publishToField: collectionobjects_common:publishToList.shortid
# Materialitem:
# publishToField: materials_common:publishToList.shortid
# Media:
# publishToField: media_materials:publishToList.shortid
# allowedPublishToValues: materialorder,all