/
application.yaml
201 lines (172 loc) · 4.75 KB
/
application.yaml
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
# Copyright (C) 2024 Frachtwerk GmbH, Leopoldstraße 7C, 76133 Karlsruhe.
#
# This file is part of essencium-backend.
#
# essencium-backend is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# essencium-backend is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with essencium-backend. If not, see <http://www.gnu.org/licenses/>.
debug: false
logging:
level:
root: INFO
org.hibernate: WARN
server:
port: 8098
error:
include-message: always
include-stacktrace: never
spring:
profiles:
active: development, h2
cache:
type: simple
application:
name: Essencium Demo Application
jpa:
generate-ddl: true
hibernate:
ddl-auto: update
properties:
hibernate:
globally_quoted_identifiers: true
freemarker:
enabled: false # disable web mvc template rendering
mvc:
pathmatch:
matching-strategy: ant_path_matcher
dispatch-trace-request: true
flyway:
enabled: true
user: ${spring.datasource.username}
password: ${spring.datasource.password}
url: ${spring.datasource.url}
baselineOnMigrate: true
validate-on-migrate: true
mail:
host: localhost
port: 587
username: dev@frachtwerk.de
password: changeme
default-sender:
name: Essencium Mailer
address: dev@frachtwerk.de
smtp:
auth: true
start-tls: true
branding:
logo: https://static.frachtwerk.de/frachtwerk_320px.png
name: ${spring.application.name}
url: ${app.url}
primary-color: "#00b5d6"
text-color: "#ffffff"
new-user-mail:
subject-key: mail.new-user.subject
template: NewUserMessage.ftl
reset-link: setPassword?token=
reset-token-mail:
subject-key: mail.reset-token.subject
template: ResetTokenMessage.ftl
reset-link: setPassword?token=
contact-mail:
subject-prefix-key: mail.contact.subject.prefix
recipients:
- dev@frachtwerk.de
template: ContactMessage.ftl
locale: de
new-login-mail:
subject-key: mail.new-login.subject
template: NewLoginMessage.ftl
sentry:
api_url: https://sentry.frachtwerk.de/api/0/
organization: frachtwerk
project: Essencium Development
environment:
# Token is for API Requests (i.e. user feedback)
# Generate one at https://sentry.frachtwerk.de/settings/account/api/auth-tokens/ with scopes: project:read, project:write
token:
# DSN is for logging and tracing
# Get it under Settings -> Project -> Client Keys (DSN)
dsn:
# To set a uniform sample rate
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.
# We recommend adjusting this value in production,
traces-sample-rate: 1.0
# setting it to 2147483647 (the value of org.springframework.core.Ordered#LOWEST_PRECEDENCE)
# makes sure only exceptions that have not been handled by exception resolvers with higher order
# are sent to Sentry.
#exception-resolver-order: -2147483647
# logging:
# minimum-breadcrumb-level: info
# minimum-event-level: info
#use-git-commit-id-as-release: true
#App Only - Trace:
in-app-includes: de.frachtwerk.
release: '@project.version@'
enable-tracing: true
app:
domain: localhost
url: http://${app.domain}:8098
auth:
jwt:
access-token-expiration: 86400 # 24 hours
refresh-token-expiration: 2592000 # 30 days
issuer: Frachtwerk GmbH
cleanup-interval: 3600 # 1 hour
max-session-expiration-time: 86400 # 24 hours
cors:
allow: false
security:
min-password-strength: 3
max-failed-logins: 10
swagger:
base-url: ${app.url}
management:
health:
ldap:
enabled: false
endpoints:
web:
exposure:
include: info, health
pom:
version: '@project.version@'
essencium:
init:
roles:
- name: ADMIN
description: Administrator
rights: []
protected: true
- name: USER
description: User
rights:
- READ
protected: true
default-role: true
users:
- first-name: Admin
last-name: User
username: devnull@frachtwerk.de
password: adminAdminAdmin
roles:
- ADMIN
- USER
- first-name: User
last-name: User
username: devnull_user@frachtwerk.de
password: userUserUser
roles:
- USER
jpa:
table-prefix: "FW_"
camel-case-to-underscore: true