升级Spring Cloud Hoxton & Alibaba,认证授权改用Oauth2。
This commit is contained in:
18
config/gateway/mall-gateway-dev.yaml
Normal file
18
config/gateway/mall-gateway-dev.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
spring:
|
||||
redis:
|
||||
host: localhost # Redis服务器地址
|
||||
database: 0 # Redis数据库索引(默认为0)
|
||||
port: 6379 # Redis服务器连接端口
|
||||
password: # Redis服务器连接密码(默认为空)
|
||||
timeout: 3000ms # 连接超时时间(毫秒)
|
||||
security:
|
||||
oauth2:
|
||||
resourceserver:
|
||||
jwt:
|
||||
jwk-set-uri: 'http://localhost:8201/mall-auth/rsa/publicKey'
|
||||
logging:
|
||||
level:
|
||||
root: info
|
||||
com.macro.mall: debug
|
||||
logstash:
|
||||
host: localhost
|
||||
19
config/gateway/mall-gateway-prod.yaml
Normal file
19
config/gateway/mall-gateway-prod.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
spring:
|
||||
redis:
|
||||
host: redis # Redis服务器地址
|
||||
database: 0 # Redis数据库索引(默认为0)
|
||||
port: 6379 # Redis服务器连接端口
|
||||
password: #不设置密码
|
||||
security:
|
||||
oauth2:
|
||||
resourceserver:
|
||||
jwt:
|
||||
jwk-set-uri: 'http://mall-gateway:8201/mall-auth/rsa/publicKey'
|
||||
logging:
|
||||
file:
|
||||
path: /var/logs
|
||||
level:
|
||||
root: info
|
||||
com.macro.mall: info
|
||||
logstash:
|
||||
host: logstash
|
||||
Reference in New Issue
Block a user