|
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 |
|
# mysql database connection:
|
7 |
|
spring.datasource.jdbc-url=jdbc:mysql://localhost:3306/spade
|
|
8 |
# first mysql database connection:
|
8 |
9 |
spring.datasource.username=root
|
9 |
|
spring.datasource.password=
|
|
10 |
spring.datasource.password=testtest
|
10 |
11 |
spring.datasource.driverClassName=com.mysql.cj.jdbc.Driver
|
11 |
12 |
|
12 |
|
# mssql database connection:
|
13 |
|
spring.second-datasource.jdbc-url=jdbc:sqlserver://localhost:1433;databaseName=authspade;encrypt=true;trustServerCertificate=true
|
14 |
|
spring.second-datasource.username=test
|
15 |
|
spring.second-datasource.password=test
|
16 |
|
spring.second-datasource.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
|
|
13 |
# second mysql database connection:
|
|
14 |
spring.second-datasource.username=root
|
|
15 |
spring.second-datasource.password=testtest
|
|
16 |
spring.second-datasource.driverClassName=com.mysql.cj.jdbc.Driver
|
17 |
17 |
|
18 |
|
# admin account username and password:
|
19 |
|
account.user.name=root
|
20 |
|
account.user.password=
|
21 |
18 |
|
22 |
|
DATA_PATH=data/
|
23 |
19 |
|
24 |
20 |
# custom error pages
|
25 |
21 |
server.error.whitelabel.enabled=false
|
26 |
22 |
|
27 |
23 |
# logger
|
28 |
24 |
logging.level.root=INFO
|
29 |
|
logging.level.cz.zcu.fav.kiv.antipatterndetectionapp=TRACE
|
30 |
|
|
31 |
|
# security
|
32 |
|
auth.realm.login=http://localhost:8081/login
|
33 |
|
auth.realm.logout=http://localhost:8081/logout
|
34 |
|
auth.realm.authenticate=http://localhost:8081/authenticate
|
35 |
|
|
36 |
|
#default configuration user
|
37 |
|
default_user_id = 2
|
38 |
|
|
39 |
|
## oauth2 -> keycloak
|
40 |
|
|
41 |
|
# localhost is here thanks to KC_HOSTNAME_URL property in the docker-compose. Otherwise, there should be docker service name.
|
42 |
|
spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:9080/auth/realms/spade
|
43 |
|
#spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://localhost:9080/auth/realms/spade/protocol/openid-connect/certs
|
44 |
|
|
45 |
|
|
46 |
|
#keycloak.auth-server-url=http://localhost:9080/auth
|
47 |
|
#keycloak.realm=spade
|
48 |
|
#keycloak.resource=spade-client
|
49 |
|
|
50 |
|
logging.level.org.springframework.security=debug
|
|
25 |
logging.level.cz.zcu.fav.kiv.antipatterndetectionapp=TRACE
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa