feat(gateway): Implement gateway module foundation

This commit is contained in:
2025-03-29 21:30:20 +08:00
parent c994e72960
commit 4ef46e6fa3
9 changed files with 556 additions and 5 deletions
@@ -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