-
Notifications
You must be signed in to change notification settings - Fork 76
/
auth-server.yml
59 lines (51 loc) · 1.49 KB
/
auth-server.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
# We need to setup different context root for the auth server so that we can store separate
# cookies for both the API gateway as well as the OAuth2 authorization server.
server:
port: 8899
contextPath: /userauth
eureka:
client:
serviceUrl:
defaultZone: http://localhost:8761/eureka/
security:
user:
password: password
logging:
level:
org.springframework.security: DEBUG
# Datasource and JPA configuration to be used for storing the OAuth authorization details
# and token store
spring:
datasource:
url: jdbc:mysql://localhost:3306/auth
username: root
password: password
driver-class: com.mysql.jdbc.Driver
jpa:
database-platform: org.hibernate.dialect.MySQLDialect
show-sql: false
hibernate:
ddl-auto: create
---
spring:
profiles: docker
# Datasource and JPA configuration to be used for storing the OAuth authorization details
# and token store
datasource:
url: jdbc:mysql://mysqldb:3306/auth
username: root
password: password
driver-class: com.mysql.jdbc.Driver
jpa:
database-platform: org.hibernate.dialect.MySQLDialect
show-sql: false
hibernate:
ddl-auto: create
eureka:
# Register our microservices to Eureka using hostnames in a Docker environment will not work, they will all get
# one and the same hostname. Instead we configure them to use its IP address during registration with Eureka.
instance:
preferIpAddress: true
client:
serviceUrl:
defaultZone: http://eurekaregistry:8761/eureka/