-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathapplication.yml
107 lines (99 loc) · 2.56 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
# local/default
custom:
iiif:
image:
maxWidth: 65500
maxHeight: 65500
canonicalRedirect: true
info:
app:
encoding: '@project.build.sourceEncoding@'
java:
source: '@maven.compiler.source@'
target: '@maven.compiler.target@'
project:
artifactId: '@project.artifactId@'
buildDetails: '@versionName@'
groupId: '@project.groupId@'
name: '@project.name@'
version: '@project.version@'
management:
endpoint:
health:
show-details: when-authorized
endpoints:
web:
base-path: '/monitoring'
exposure:
include: '*'
info:
git:
mode: full
server:
port: 9001
resourceRepository:
resolved:
patterns:
# An image pattern resolving example:
- pattern: ^(\d{8})_(\d{5})$
substitutions:
- 'file:/var/local/iiif/images/$1/original/image_$1_$2.tif'
- 'file:/var/local/iiif/images/$1/300/image_$1_$2.jpg'
- 'file:/var/local/iiif/images/$1/150/image_$1_$2.jpg'
# An manifest pattern resolving example:
- pattern: ^(\d{8})$
substitutions:
- 'file:/var/local/iiif/presentation/manifests/manifest_$1.json'
# For the official IIIF Image API Validator
- pattern: 67352ccc-d1b0-11e1-89ae-279075081939
substitutions:
- 'classpath:validation.jp2'
- 'classpath:validation.png'
# Collection manifests ('collection-' pattern-prefix is statically added to requested collection name to disambigued from other patterns)
- pattern: ^collection-(.*)$
substitutions:
- 'file:/var/local/iiif/presentation/collections/$1.json'
# Annotation list of transcriptions
- pattern: ^transcription-(.*)$
substitutions:
- 'file:/var/local/iiif/presentation/annotations/$1.json'
server:
error:
include-exception: true
include-stacktrace: always
port: 9000
server-header: "@project.name@ [email protected]@"
tomcat:
accesslog:
directory: "/var/log/digitalcollections"
enabled: true
prefix: access_log_hymir
rename-on-rotate: true
spring:
messages:
basename: 'messages, messages-commons'
cache-duration: 5
encoding: 'UTF-8'
fallback-to-system-locale: false
profiles:
active: local
include: webjars
security:
user:
name: admin
password: secret
thymeleaf:
cache: false
mode: HTML
---
# PROD
server:
error:
include-exception: false
include-stacktrace: 'never'
spring:
config:
activate:
on-profile: PROD
thymeleaf:
cache: true