Projekt

Obecné

Profil

« Předchozí | Další » 

Revize b5ce4e16

Přidáno uživatelem stepanekp před asi 1 rok

application properties prepared for docker

Zobrazit rozdíly:

pom.xml
238 238
			<scope>test</scope>
239 239
		</dependency>
240 240

  
241
		<!-- MS SQL Server DataBase -->
242

  
241
		<!-- MS SQL Server DataBase
243 242
		<dependency>
244 243
			<groupId>com.microsoft.sqlserver</groupId>
245 244
			<artifactId>mssql-jdbc</artifactId>
246 245
			<version>12.2.0.jre11</version>
247 246
		</dependency>
247
		-->
248 248
        <dependency>
249 249
            <groupId>com.google.code.gson</groupId>
250 250
            <artifactId>gson</artifactId>
src/main/resources/application-docker.properties
1
spring.datasource.jdbc-url=jdbc:mysql://mysql-db:3306/spade
2
spring.second-datasource.jdbc-url=jdbc:mysql://mysql-db:3306/authspade
3
spring.security.oauth2.resourceserver.jwt.jwk-set-uri=http://keycloak:9080/auth/realms/spade/protocol/openid-connect/certs
src/main/resources/application-local.properties
1
spring.datasource.jdbc-url=jdbc:mysql://localhost:3306/spade
2
spring.second-datasource.jdbc-url=jdbc:mysql://localhost:3306/authspade
3
spring.security.oauth2.resourceserver.jwt.issuer-uri=http://localhost:9080/auth/realms/spade
src/main/resources/application.properties
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

Také k dispozici: Unified diff