forked from rohitghatol/sample-config
-
Notifications
You must be signed in to change notification settings - Fork 86
/
auth-server.yml
42 lines (36 loc) · 1.08 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
# 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
# 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
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://192.168.59.103:8761/eureka/