public class ProxyConfig extends Object
| Modifier and Type | Field and Description |
|---|---|
boolean |
allowForwarded
If this is true and proxy address forwarding is enabled then the standard
Forwarded header will be used,
rather than the more common but not standard X-Forwarded-For. |
boolean |
enableForwardedHost
Enable override the received request's host through a forwarded host header.
|
boolean |
enableForwardedPrefix
Enable prefix the received request's path with a forwarded prefix header.
|
String |
forwardedHostHeader
Configure the forwarded host header to be used if override enabled.
|
String |
forwardedPrefixHeader
Configure the forwarded prefix header to be used if prefixing enabled.
|
boolean |
proxyAddressForwarding
If this is true then the address, scheme etc will be set from headers forwarded by the proxy server, such as
X-Forwarded-For. |
| Constructor and Description |
|---|
ProxyConfig() |
@ConfigItem public boolean proxyAddressForwarding
X-Forwarded-For. This should only be set if you are behind a proxy that sets these headers.@ConfigItem public boolean allowForwarded
Forwarded header will be used,
rather than the more common but not standard X-Forwarded-For.@ConfigItem(defaultValue="false") public boolean enableForwardedHost
@ConfigItem(defaultValue="X-Forwarded-Host") public String forwardedHostHeader
@ConfigItem(defaultValue="false") public boolean enableForwardedPrefix
@ConfigItem(defaultValue="X-Forwarded-Prefix") public String forwardedPrefixHeader
Copyright © 2021 JBoss by Red Hat. All rights reserved.