-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsecurity-oauth-pro.yml
72 lines (72 loc) · 1.98 KB
/
security-oauth-pro.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
60
61
62
63
64
65
66
67
68
69
70
71
72
server:
port: ${run_port}
security:
user:
password: barsecret
name: bar
oauth2:
client:
client-id: yvz5o319oolklggq
client-secret: 7g8trcvehjp4bi52
authorized-grant-types: refresh_token,password
scope: openid
eureka:
client:
service-url:
defaultZone : ${eureka_url}
instance:
prefer-ip-address: true
ip-address: ${host_ip}
hystrix:
command:
default:
execution:
timeout:
enabled: true
isolation:
thread:
timeoutInMilliseconds: 60000
#spring:
# datasource:
# type: com.zaxxer.hikari.HikariDataSource
# hikari:
# max-lifetime: 1800000
# maximum-pool-size: 64
# read-only: false
# connection-timeout: 30000
# idle-timeout: 600000
# minimum-idle: 20
# driver-class-name: com.mysql.jdbc.Driver
# url: jdbc:mysql://db:3306/hl_oauth?useUnicode=true&characterEncoding=utf-8&useSSL=false
# username: ${db_username}
# password: ${db_password}
datasource:
type: com.zaxxer.hikari.HikariDataSource
write:
driver-class-name: com.mysql.jdbc.Driver
jdbc-url: jdbc:mysql://db:3306/hl_oauth?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: ${db_username}
password: ${db_password}
max-lifetime: 1800000
maximum-pool-size: 32
read-only: false
connection-timeout: 30000
idle-timeout: 600000
minimum-idle: 20
read:
driver-class-name: com.mysql.jdbc.Driver
jdbc-url: jdbc:mysql://db_read:3306/hl_oauth?useUnicode=true&characterEncoding=utf-8&useSSL=false
username: ${db_username}
password: ${db_password}
max-lifetime: 1800000
maximum-pool-size: 32
read-only: false
connection-timeout: 30000
idle-timeout: 600000
minimum-idle: 20
mybatis:
type-aliases-package: com.hoolai.access.foreign.core.oauth.dao.mybatis.vo
mapper-locations: classpath:com/hoolai/access/foreign/core/oauth/dao/mybatis/mapper/*Mapper.xml
logging:
level: info
config: classpath:logback-spring.xml