Skip to content

Commit 9b0d2c3

Browse files
committed
fix: align mcp-gateway config fallbacks
1 parent 296ffeb commit 9b0d2c3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

configs/mcp-gateway.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ reload_switch: ${MCP_GATEWAY_RELOAD_SWITCH:true}
55

66
# Logger configuration
77
logger:
8-
level: "${LOGGER_LEVEL:info}" # debug, info, warn, error
8+
level: "${LOGGER_LEVEL:debug}" # debug, info, warn, error
99
format: "${LOGGER_FORMAT:json}" # json, console
1010
output: "${LOGGER_OUTPUT:stdout}" # stdout, file
1111
file_path: "${LOGGER_FILE_PATH:/var/log/unla/mcp-gateway.log}" # path to log file when output is file
@@ -24,7 +24,7 @@ tracing:
2424
protocol: "${TRACING_PROTOCOL:grpc}" # grpc or http
2525
insecure: ${TRACING_INSECURE:true}
2626
sampler_rate: ${TRACING_SAMPLER_RATE:0.1} # 0.0 ~ 1.0
27-
environment: "${TRACING_ENV:dev}"
27+
environment: "${TRACING_ENV:prod}"
2828
headers: {} # optional exporter headers
2929
capture:
3030
downstream_error:
@@ -143,7 +143,7 @@ forward:
143143
mcp_arg:
144144
key_for_header: "${FORWARD_MCP_ARG_KEY_FOR_HEADER:__forwardHeaders}"
145145
header:
146-
allow_headers: "${FORWARD_ALLOW_HEADERS:}"
146+
allow_headers: "${FORWARD_ALLOW_HEADERS:cms-sso-act,cms-sso-token,cms-auth-token}"
147147
ignore_headers: "${FORWARD_IGNORE_HEADERS: Accept, Accept-Encoding, Accept-Language, Host, Cookie, Connection, User-Agent, Content-Length, Content-Type}"
148148
case_insensitive: ${FORWARD_HEADER_CASE_INSENSITIVE:true}
149149
override_existing: ${FORWARD_HEADER_OVERRIDE_EXISTING:false}
@@ -153,7 +153,7 @@ tool_access:
153153
# Enable/disable internal network access validation. Defaults to true.
154154
enabled: ${INTERNAL_NETWORK_VALIDATION_ENABLED:false}
155155
# Allowlist of internal targets (CIDR/IP/hostname). Empty means internal access is blocked.
156-
allowlist: "${INTERNAL_NETWORK_ALLOWLIST:127.0.0.1/32,localhost}"
156+
allowlist: "${INTERNAL_NETWORK_ALLOWLIST:127.0.0.1/32,localhost,10.253.2.0/24,control-server}"
157157
# allowlist: "internal.service.local,192.168.1.1"
158158

159159
metrics:

0 commit comments

Comments
 (0)