🔨 IP 请求头可配置.
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -175,6 +175,8 @@ orion:
|
||||
prefix: ${orion.prefix}/api
|
||||
# 是否允许跨域
|
||||
cors: true
|
||||
# 获取 IP 的请求头
|
||||
ip-headers: X-Forwarded-For,X-Real-IP
|
||||
# 对外服务
|
||||
expose:
|
||||
# 暴露接口请求头
|
||||
|
||||
Reference in New Issue
Block a user