NameDefaultDescription
spring.cloud.gateway.default-filters适用于每条路线的过滤器定义列表.
spring.cloud.gateway.discovery.locator.enabledfalse启用DiscoveryClient网关集成的标志.
spring.cloud.gateway.discovery.locator.filters
spring.cloud.gateway.discovery.locator.include-expressiontrue将评估是否在网关集成中包括服务的SpEL表达式,默认为:true.
spring.cloud.gateway.discovery.locator.lower-case-service-idfalsepredicates和filters中的小写serviceId选项,默认为false。 当eureka自动将serviceId大写时,对eureka很有用。 因此MYSERIVCE将与/ myservice / **匹配
spring.cloud.gateway.discovery.locator.predicates
spring.cloud.gateway.discovery.locator.route-id-prefixrouteId的前缀,默认为DiscoveryClient.getClass()。getSimpleName()+“ _”。 将添加服务ID以创建routeId.
spring.cloud.gateway.discovery.locator.url-expression'lb://'+serviceId为每条路线创建uri的SpEL表达式,默认为:‘lb://’+ serviceId.
spring.cloud.gateway.enabledtrue启用网关功能.
spring.cloud.gateway.fail-on-route-definition-errortrue在路由定义错误时失败的选项,默认为true。 否则,将记录警告.
spring.cloud.gateway.filter.add-request-header.enabledtrue启用add-request-header.
spring.cloud.gateway.filter.add-request-parameter.enabledtrue启用add-request-parameter filter.
spring.cloud.gateway.filter.add-response-header.enabledtrue启用 add-response-header filter.
spring.cloud.gateway.filter.circuit-breaker.enabledtrue启用 circuit-breaker filter.
spring.cloud.gateway.filter.dedupe-response-header.enabledtrue启用 dedupe-response-header filter.
spring.cloud.gateway.filter.fallback-headers.enabledtrue启用 fallback-headers filter.
spring.cloud.gateway.filter.hystrix.enabledtrue启用 hystrix filter.
spring.cloud.gateway.filter.map-request-header.enabledtrue启用 map-request-header filter.
spring.cloud.gateway.filter.modify-request-body.enabledtrue启用 modify-request-body filter.
spring.cloud.gateway.filter.modify-response-body.enabledtrue启用 modify-response-body filter.
spring.cloud.gateway.filter.prefix-path.enabledtrue启用 prefix-path filter.
spring.cloud.gateway.filter.preserve-host-header.enabledtrue启用 preserve-host-header filter.
spring.cloud.gateway.filter.redirect-to.enabledtrue启用 redirect-to filter.
spring.cloud.gateway.filter.remove-hop-by-hop.headers
spring.cloud.gateway.filter.remove-hop-by-hop.order
spring.cloud.gateway.filter.remove-request-header.enabledtrue启用 remove-request-header filter.
spring.cloud.gateway.filter.remove-request-parameter.enabledtrue启用 remove-request-parameter filter.
spring.cloud.gateway.filter.remove-response-header.enabledtrue启用 remove-response-header filter.
spring.cloud.gateway.filter.request-header-size.enabledtrue启用 request-header-size filter.
spring.cloud.gateway.filter.request-header-to-request-uri.enabledtrue启用 request-header-to-request-uri filter.
spring.cloud.gateway.filter.request-rate-limiter.deny-empty-keytrue如果键解析器返回空键,则切换为拒绝请求,默认为true.
spring.cloud.gateway.filter.request-rate-limiter.empty-key-status-codedenyEmptyKey为true时返回的HttpStatus,默认为FORBIDDEN.
spring.cloud.gateway.filter.request-rate-limiter.enabledtrue启用 request-rate-limiter filter.
spring.cloud.gateway.filter.request-size.enabledtrue启用 request-size filter.
spring.cloud.gateway.filter.retry.enabledtrue启用retry filter.
spring.cloud.gateway.filter.rewrite-location-response-header.enabledtrue启用 rewrite-location-response-header filter.
spring.cloud.gateway.filter.rewrite-location.enabledtrue启用 rewrite-location filter.
spring.cloud.gateway.filter.rewrite-path.enabledtrue启用 rewrite-path filter.
spring.cloud.gateway.filter.rewrite-response-header.enabledtrue启用 rewrite-response-header filter.
spring.cloud.gateway.filter.save-session.enabledtrue启用 save-session filter.
spring.cloud.gateway.filter.secure-headers.content-security-policydefault-src 'self' https:; font-src 'self' https: data:; img-src 'self' https: data:; object-src 'none'; script-src https:; style-src 'self' https: 'unsafe-inline'
spring.cloud.gateway.filter.secure-headers.content-type-optionsnosniff
spring.cloud.gateway.filter.secure-headers.disable
spring.cloud.gateway.filter.secure-headers.download-optionsnoopen
spring.cloud.gateway.filter.secure-headers.enabledtrue启用 secure-headers filter.
spring.cloud.gateway.filter.secure-headers.frame-optionsDENY
spring.cloud.gateway.filter.secure-headers.permitted-cross-domain-policiesnone
spring.cloud.gateway.filter.secure-headers.referrer-policyno-referrer
spring.cloud.gateway.filter.secure-headers.strict-transport-securitymax-age=631138519
spring.cloud.gateway.filter.secure-headers.xss-protection-header1 ; mode=block
spring.cloud.gateway.filter.set-path.enabledtrue启用 set-path filter.
spring.cloud.gateway.filter.set-request-header.enabledtrue启用 set-request-header filter.
spring.cloud.gateway.filter.set-request-host-header.enabledtrue启用 set-request-host-header filter.
spring.cloud.gateway.filter.set-response-header.enabledtrue启用 set-response-header filter.
spring.cloud.gateway.filter.set-status.enabledtrue启用 set-status filter.
spring.cloud.gateway.filter.strip-prefix.enabledtrue启用 strip-prefix filter.
spring.cloud.gateway.forwarded.enabledtrue启用 ForwardedHeadersFilter.
spring.cloud.gateway.global-filter.adapt-cached-body.enabledtrue启用 adapt-cached-body global filter.
spring.cloud.gateway.global-filter.forward-path.enabledtrue启用 forward-path global filter.
spring.cloud.gateway.global-filter.forward-routing.enabledtrue启用 forward-routing global filter.
spring.cloud.gateway.global-filter.load-balancer-client.enabledtrue启用 load-balancer-client global filter.
spring.cloud.gateway.global-filter.netty-routing.enabledtrue启用 netty-routing global filter.
spring.cloud.gateway.global-filter.netty-write-response.enabledtrue启用 netty-write-response global filter.
spring.cloud.gateway.global-filter.reactive-load-balancer-client.enabledtrue启用 reactive-load-balancer-client global filter.
spring.cloud.gateway.global-filter.remove-cached-body.enabledtrue启用 remove-cached-body global filter.
spring.cloud.gateway.global-filter.route-to-request-url.enabledtrue启用 route-to-request-url global filter.
spring.cloud.gateway.global-filter.websocket-routing.enabledtrue启用 websocket-routing global filter.
spring.cloud.gateway.globalcors.add-to-simple-url-handler-mappingfalse如果应将全局CORS配置添加到URL处理程序.
spring.cloud.gateway.globalcors.cors-configurations
spring.cloud.gateway.httpclient.compressionfalse为Netty HttpClient启用压缩.
spring.cloud.gateway.httpclient.connect-timeout连接超时(以毫秒为单位),默认值为45s.
spring.cloud.gateway.httpclient.max-header-size最大响应标头大小.
spring.cloud.gateway.httpclient.max-initial-line-length最大初始行长.
spring.cloud.gateway.httpclient.pool.acquire-timeout仅对于FIXED类型,等待获取的最长时间(以毫秒为单位).
spring.cloud.gateway.httpclient.pool.max-connections仅对于FIXED类型,在现有连接上开始等待挂起之前的最大连接数.
spring.cloud.gateway.httpclient.pool.max-idle-time以毫秒为单位的时间,之后通道将被关闭。 如果为NULL,则没有最大空闲时间.
spring.cloud.gateway.httpclient.pool.max-life-time通道将关闭的持续时间。 如果为NULL,则没有最大使用寿命.
spring.cloud.gateway.httpclient.pool.nameproxy通道池映射名称,默认为代理.
spring.cloud.gateway.httpclient.pool.type供HttpClient使用的池类型,默认为ELASTIC.
spring.cloud.gateway.httpclient.proxy.hostNetty HttpClient代理配置的主机名.
spring.cloud.gateway.httpclient.proxy.non-proxy-hosts-pattern配置的主机列表的正则表达式(Java)。 应该直接到达,绕过代理
spring.cloud.gateway.httpclient.proxy.passwordNetty HttpClient代理配置的密码.
spring.cloud.gateway.httpclient.proxy.portNetty HttpClient代理配置的端口.
spring.cloud.gateway.httpclient.proxy.type用于Netty HttpClient代理配置的proxyType.
spring.cloud.gateway.httpclient.proxy.usernameNetty HttpClient代理配置的用户名.
spring.cloud.gateway.httpclient.response-timeout响应超时.
spring.cloud.gateway.httpclient.ssl.close-notify-flush-timeout3000msSSL close_notify刷新超时。 默认为3000毫秒.
spring.cloud.gateway.httpclient.ssl.close-notify-read-timeout0SSL close_notify读取超时。 默认为0毫秒.
spring.cloud.gateway.httpclient.ssl.default-configuration-type默认的ssl配置类型。 默认为TCP.
spring.cloud.gateway.httpclient.ssl.handshake-timeout10000msSSL握手超时。 默认为10000毫秒
spring.cloud.gateway.httpclient.ssl.key-password密钥密码,默认与keyStorePassword相同.
spring.cloud.gateway.httpclient.ssl.key-storeNetty HttpClient的密钥库路径.
spring.cloud.gateway.httpclient.ssl.key-store-password密钥库密码.
spring.cloud.gateway.httpclient.ssl.key-store-providerNetty HttpClient的密钥库提供程序,可选字段.
spring.cloud.gateway.httpclient.ssl.key-store-typeJKSNetty HttpClient的密钥库类型,默认为JKS.
spring.cloud.gateway.httpclient.ssl.trusted-x509-certificates用于验证远程端点的证书的受信任证书.
spring.cloud.gateway.httpclient.ssl.use-insecure-trust-managerfalse安装netty InsecureTrustManagerFactory。 这是不安全的,不适合生产.
spring.cloud.gateway.httpclient.websocket.max-frame-payload-length最大帧有效载荷长度.
spring.cloud.gateway.httpclient.websocket.proxy-pingtrue对下游服务的代理ping帧,默认为true.
spring.cloud.gateway.httpclient.wiretapfalse为Netty HttpClient启用窃听调试.
spring.cloud.gateway.httpserver.wiretapfalse为Netty HttpServer启用窃听调试.
spring.cloud.gateway.loadbalancer.use404false
spring.cloud.gateway.metrics.enabledfalse启用指标数据收集.
spring.cloud.gateway.metrics.prefixspring.cloud.gateway网关发出的所有指标的前缀.
spring.cloud.gateway.metrics.tags标签映射已添加到指标.
spring.cloud.gateway.predicate.after.enabledtrue开启 after predicate.
spring.cloud.gateway.predicate.before.enabledtrue开启 before predicate.
spring.cloud.gateway.predicate.between.enabledtrue开启 between predicate.
spring.cloud.gateway.predicate.cloud-foundry-route-service.enabledtrue开启 cloud-foundry-route-service predicate.
spring.cloud.gateway.predicate.cookie.enabledtrue开启 cookie predicate.
spring.cloud.gateway.predicate.header.enabledtrue开启 header predicate.
spring.cloud.gateway.predicate.host.enabledtrue开启 host predicate.
spring.cloud.gateway.predicate.method.enabledtrue开启 method predicate.
spring.cloud.gateway.predicate.path.enabledtrue开启 path predicate.
spring.cloud.gateway.predicate.query.enabledtrue开启 query predicate.
spring.cloud.gateway.predicate.read-body.enabledtrue开启 read-body predicate.
spring.cloud.gateway.predicate.remote-addr.enabledtrue开启 remote-addr predicate.
spring.cloud.gateway.predicate.weight.enabledtrue开启 weight predicate.
spring.cloud.gateway.redis-rate-limiter.burst-capacity-headerX-RateLimit-Burst-Capacity返回突发容量配置的标头名称.
spring.cloud.gateway.redis-rate-limiter.config
spring.cloud.gateway.redis-rate-limiter.include-headerstrue是否包括包含速率限制器信息的标头,默认为true.
spring.cloud.gateway.redis-rate-limiter.remaining-headerX-RateLimit-Remaining标头名称,该标头返回当前秒内剩余请求数.
spring.cloud.gateway.redis-rate-limiter.replenish-rate-headerX-RateLimit-Replenish-Rate返回补充费率配置的标头名称.
spring.cloud.gateway.redis-rate-limiter.requested-tokens-headerX-RateLimit-Requested-Tokens返回请求的令牌配置的标头名称.
spring.cloud.gateway.routes路由清单.
spring.cloud.gateway.set-status.original-status-header-name标头名称,其中包含代理请求的http代码.
spring.cloud.gateway.streaming-media-types
spring.cloud.gateway.x-forwarded.enabledtrueIf the XForwardedHeadersFilter is enabled.
spring.cloud.gateway.x-forwarded.for-appendtrueIf appending X-Forwarded-For as a list is enabled.
spring.cloud.gateway.x-forwarded.for-enabledtrueIf X-Forwarded-For is enabled.
spring.cloud.gateway.x-forwarded.host-appendtrueIf appending X-Forwarded-Host as a list is enabled.
spring.cloud.gateway.x-forwarded.host-enabledtrueIf X-Forwarded-Host is enabled.
spring.cloud.gateway.x-forwarded.order0The order of the XForwardedHeadersFilter.
spring.cloud.gateway.x-forwarded.port-appendtrueIf appending X-Forwarded-Port as a list is enabled.
spring.cloud.gateway.x-forwarded.port-enabledtrueIf X-Forwarded-Port is enabled.
spring.cloud.gateway.x-forwarded.prefix-appendtrueIf appending X-Forwarded-Prefix as a list is enabled.
spring.cloud.gateway.x-forwarded.prefix-enabledtrueIf X-Forwarded-Prefix is enabled.
spring.cloud.gateway.x-forwarded.proto-appendtrueIf appending X-Forwarded-Proto as a list is enabled.
spring.cloud.gateway.x-forwarded.proto-enabledtrueIf X-Forwarded-Proto is enabled.
Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐