/
application.yml
100 lines (91 loc) · 2.07 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
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: 9011
resourceRepository:
resolved:
patterns:
- pattern: ^([^.]*?)$
substitutions:
- 'file:~/Downloads/$1.mp4'
- 'file:~/Downloads/$1.mp3'
- 'file:~/Downloads/$1.ogg'
- 'file:~/Downloads/$1.pdf'
- 'file:~/Downloads/$1.txt'
- 'file:~/Downloads/$1.xml'
server:
error:
include-exception: true
include-stacktrace: always
port: 9010
server-header: "@project.name@ v@project.version@"
tomcat:
accesslog:
directory: "/var/log/digitalcollections"
enabled: true
prefix: access_log_euphoria
rename-on-rotate: true
spring:
messages:
basename: 'messages, messages-commons'
cache-duration: 5
encoding: 'UTF-8'
fallback-to-system-locale: false
profiles:
active: local
security:
user:
name: admin
password: secret
thymeleaf:
cache: false
mode: HTML
---
management:
server:
port: 9001
resourceRepository:
resolved:
patterns:
- pattern: ^([^.]*?)$
# just examples, change the filepath to your setup
substitutions:
- 'file:/local/fileResources/$1.mp4'
- 'file:/local/fileResources/$1.mp3'
- 'file:/local/fileResources/$1.ogg'
- 'file:/local/fileResources/$1.pdf'
- 'file:/local/fileResources/$1.txt'
- 'file:/local/fileResources/$1.xml'
server:
error:
include-exception: false
include-stacktrace: 'never'
port: 8080
spring:
config:
activate:
on-profile: PROD
thymeleaf:
cache: true