This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapplication.yml
104 lines (93 loc) · 2.49 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
dcsa:
specification:
version: 0.0.1
spring:
application:
name: DCSA-Endorcement-Chain
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://${db_hostname}/dcsa_ec_registry
username: dcsa_db_owner
hikari:
schema: ec_registry
jpa:
database-platform: org.hibernate.dialect.PostgreSQL10Dialect
hibernate.ddl-auto: validate
security:
keystorePassword: dcsa-pass
keystoreLocation: ${KEYSTORE_LOCATION:test-certificates/dcsa-jwk.jks}
jws:
key-id: ${JWS_KEY_ID:dcsa-kid}
verification:
keystoreLocation: ${KEYSTORE_VERIFICATION_LOCATION:test-certificates/dcsa-jwk-verify.jks}
keystorePassword: dcsa-pass
jws:
key-id: dcsa-kid
oauth2:
resourceserver:
jwt:
issuer-uri: https://dcsa.eu.auth0.com/
profiles:
active: nosecurity
group:
dev: nosecurity, logsql, localdb
test: nosecurity, logsql, localdb
prod: default
server:
ssl:
key-store: ${TLS_KEYSTORE:test-certificates/springboot-https.p12}
key-store-password: ${TLS_KEYSTORE_PASSWORD:your_key-store_password}
key-store-type: pkcs12
key-alias: springboot-https
port: ${PORT:8443}
hostname: ${HOSTNAME:localhost}
servlet.context-path: /v1
error:
include-binding-errors: on_param
include-message: always
management:
endpoints:
web:
exposure:
include: "health"
logging:
level:
root: ${ROOT_LOG_LEVEL:INFO}
org:
springframework: ${SPRING_LOG_LEVEL:INFO}
dcsa: ${DCSA_LOG_LEVEL:INFO}
---
# A profile for disabling security
spring:
config:
activate:
on-profile: nosecurity
autoconfigure:
exclude:
- org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration
- org.springframework.boot.actuate.autoconfigure.security.servlet.ManagementWebSecurityAutoConfiguration
- org.springframework.boot.autoconfigure.security.oauth2.resource.servlet.OAuth2ResourceServerAutoConfiguration
---
# A profile for connecting to a local database and with local
spring:
config:
activate:
on-profile: localdb
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://${db_hostname}/dcsa_ec_registry
username: dcsa_db_owner
password: 9c072fe8-c59c-11ea-b8d1-7b6577e9f3f5
jpa:
show-sql: true
---
# A profile for logging the sql generated by jpa
spring:
config:
activate:
on-profile: logsql
logging:
level:
org:
hibernate:
SQL: DEBUG