|
1 |
spring.config.name=application,application-${spring.profiles.active}
|
|
2 |
|
1 |
3 |
# jpa settings
|
2 |
4 |
spring.jpa.hibernate.ddl-auto=update
|
3 |
5 |
spring.jpa.show-sql=true
|
4 |
6 |
spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.SQLServerDialect
|
5 |
7 |
|
6 |
8 |
# first mysql database connection:
|
7 |
|
spring.datasource.jdbc-url=jdbc:mysql://localhost:3306/spade
|
|
9 |
#spring.datasource.jdbc-url=jdbc:mysql://localhost:3306/spade
|
8 |
10 |
spring.datasource.username=root
|
9 |
11 |
spring.datasource.password=
|
10 |
12 |
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
|
11 |
13 |
|
12 |
14 |
# second mysql database connection:
|
13 |
|
spring.second-datasource.jdbc-url=jdbc:mysql://localhost:3306/authspade
|
|
15 |
#spring.second-datasource.jdbc-url=jdbc:mysql://localhost:3306/authspade
|
14 |
16 |
spring.second-datasource.username=root
|
15 |
17 |
spring.second-datasource.password=
|
16 |
18 |
spring.second-datasource.driverClassName=com.mysql.cj.jdbc.Driver
|
... | ... | |
24 |
26 |
logging.level.root=INFO
|
25 |
27 |
logging.level.cz.zcu.fav.kiv.antipatterndetectionapp=TRACE
|
26 |
28 |
|
27 |
|
# security
|
28 |
|
auth.realm.login=http://localhost:8081/login
|
29 |
|
auth.realm.logout=http://localhost:8081/logout
|
30 |
|
auth.realm.authenticate=http://localhost:8081/authenticate
|
31 |
|
|
32 |
|
#default configuration user
|
33 |
|
default_user_id = 2
|
34 |
|
|
35 |
|
## oauth2 -> keycloak
|
36 |
|
|
37 |
|
# localhost is here thanks to KC_HOSTNAME_URL property in the docker-compose. Otherwise, there should be docker service name.
|
|
29 |
# keycloak
|
38 |
30 |
spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:9080/auth/realms/spade
|
39 |
|
#spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://localhost:9080/auth/realms/spade/protocol/openid-connect/certs
|
40 |
|
|
41 |
|
|
42 |
|
#keycloak.auth-server-url=http://localhost:9080/auth
|
43 |
|
#keycloak.realm=spade
|
44 |
|
#keycloak.resource=spade-client
|
45 |
31 |
|
46 |
|
logging.level.org.springframework.security=debug
|
|
32 |
#logging.level.org.springframework.security=debug
|
application properties prepared for docker