🔨 IP 请求头可配置.

This commit is contained in:
lijiahangmax
2025-10-27 09:50:17 +08:00
parent 90705781f2
commit 3a8addb4d2
7 changed files with 95 additions and 13 deletions

View File

@@ -74,6 +74,9 @@ orion:
api:
# 是否允许跨域
cors: ${API_CORS:true}
# 获取 IP 的请求头
ip-headers: ${API_IP_HEADERS:X-Forwarded-For,X-Real-IP}
# 对外服务
expose:
# 暴露接口请求头值
token: ${API_EXPOSE_TOKEN:pmqeHOyZaumHm0Wt}

View File

@@ -175,6 +175,8 @@ orion:
prefix: ${orion.prefix}/api
# 是否允许跨域
cors: true
# 获取 IP 的请求头
ip-headers: X-Forwarded-For,X-Real-IP
# 对外服务
expose:
# 暴露接口请求头