Configuration options

Table 1. Optional configuration options
key type default value description

enabled

boolean

true if 'types' or 'trusted-proxies' is set; false otherwise

Sets whether requested URI discovery is enabled for requestes arriving on the socket.

trusted-proxies

 

Sets the trusted proxies for requested URI discovery for requests arriving on the socket.

types

RequestedUriDiscoveryType[] (FORWARDED, X_FORWARDED, HOST)

 

Sets the discovery types for requested URI discovery for requests arriving on the socket.

Allowed values:

  • FORWARDED: The io.helidon.http.Header#FORWARDED header is used to discover the original requested URI.

  • X_FORWARDED: The io.helidon.http.Header#X_FORWARDED_PROTO, io.helidon.http.Header#X_FORWARDED_HOST, io.helidon.http.Header#X_FORWARDED_PORT, io.helidon.http.Header#X_FORWARDED_PREFIX headers are used to discover the original requested URI.

  • HOST: This is the default, only the io.helidon.http.Header#HOST header is used to discover requested URI.