feat(gateway): Implement gateway module foundation
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
spring:
|
||||
cloud:
|
||||
sentinel:
|
||||
log:
|
||||
dir: ./logs/sentinel/
|
||||
switch-pid: true
|
||||
gateway:
|
||||
httpclient:
|
||||
connect-timeout: 60000
|
||||
response-timeout: 60000
|
||||
|
||||
logging:
|
||||
level:
|
||||
org.springframework.cloud.gateway: debug
|
||||
reactor.netty.http.client: debug
|
||||
@@ -4,12 +4,26 @@ server:
|
||||
spring:
|
||||
application:
|
||||
name: video-gateway
|
||||
profiles:
|
||||
active: dev
|
||||
config:
|
||||
import:
|
||||
- optional:nacos:${spring.application.name}.yaml
|
||||
cloud:
|
||||
nacos:
|
||||
discovery:
|
||||
server-addr: 5.180.253.115:8848
|
||||
namespace: public
|
||||
group: DEFAULT_GROUP
|
||||
server-addr: ${NACOS_HOST:5.180.253.115}:${NACOS_PORT:8848}
|
||||
namespace: ${NACOS_NAMESPACE:public}
|
||||
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
||||
config:
|
||||
server-addr: ${spring.cloud.nacos.discovery.server-addr}
|
||||
namespace: ${spring.cloud.nacos.discovery.namespace}
|
||||
group: ${spring.cloud.nacos.discovery.group}
|
||||
file-extension: yaml
|
||||
extension-configs:
|
||||
- data-id: video-gateway.yaml
|
||||
group: ${NACOS_GROUP:DEFAULT_GROUP}
|
||||
refresh: true
|
||||
gateway:
|
||||
discovery:
|
||||
locator:
|
||||
@@ -54,7 +68,7 @@ spring:
|
||||
- StripPrefix=1
|
||||
sentinel:
|
||||
transport:
|
||||
dashboard: 5.180.253.115:8080
|
||||
dashboard: ${SENTINEL_DASHBOARD_HOST:5.180.253.115}:${SENTINEL_DASHBOARD_PORT:8080}
|
||||
port: 8719
|
||||
eager: true
|
||||
scg:
|
||||
@@ -66,4 +80,22 @@ management:
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: '*'
|
||||
include: '*'
|
||||
endpoint:
|
||||
health:
|
||||
show-details: always
|
||||
gateway:
|
||||
enabled: true
|
||||
|
||||
# 不需要鉴权的URL列表
|
||||
gateway:
|
||||
ignore:
|
||||
urls:
|
||||
- /auth/login
|
||||
- /auth/register
|
||||
- /auth/captcha
|
||||
- /*/v3/api-docs
|
||||
- /swagger-resources/**
|
||||
- /swagger-ui/**
|
||||
- /actuator/**
|
||||
- /favicon.ico
|
||||
Reference in New Issue
Block a user