refactor(gateway): Centralize ignored URL configuration

This commit is contained in:
2025-04-14 16:18:46 +08:00
parent 7c9513cf1e
commit 66477b708f
2 changed files with 11 additions and 21 deletions
@@ -25,18 +25,6 @@ spring:
group: ${NACOS_GROUP:DEFAULT_GROUP}
refresh: true
gateway:
ignore:
urls:
- /**/auth/login
- /**/auth/register
- /**/auth/captcha
- /content/video/public/**
- /content/category/tree
- /content/category/list
- /comment/reply/public/**
- /comment/public/**
- /admin/auth/captcha
- /admin/auth/login
discovery:
locator:
enabled: true
@@ -97,11 +85,13 @@ management:
gateway:
ignore:
urls:
- /auth/login
- /auth/register
- /auth/captcha
- /*/v3/api-docs
- /swagger-resources/**
- /swagger-ui/**
- /actuator/**
- /favicon.ico
- /**/auth/login
- /**/auth/register
- /**/auth/captcha
- /content/video/public/**
- /content/category/tree
- /content/category/list
- /comment/reply/public/**
- /comment/public/**
- /admin/auth/captcha
- /admin/auth/login