Interface ManagementConfig
Note that the management interface must be enabled using the
ManagementInterfaceBuildTimeConfig.enabled() build-time property.
-
Method Summary
Modifier and TypeMethodDescriptionintThe accept backlog, this is how many connections can be waiting to be accepted before connections start being rejectedThe format for Netty activity log data.auth()Authentication configurationbody()Request body related settingsintMinimum response body size (in bytes) to trigger compression. 0 means compress everything when compression is enabled.cors()The CORS configdefault intdeterminePort(io.quarkus.runtime.LaunchMode launchMode) Path to a Unix Domain Socket.booleanEnable listening to host:portfilter()Additional HTTP configuration per pathbooleanWhen set totrue, the HTTP server automatically sends `100 CONTINUE` response when the request expects it (with the `Expect: 100-Continue` header).header()Additional HTTP Headers always sent in the responsehost()The HTTP hostbooleanEnable listening to host:portThe HTTP Host header validationHttp connection idle timeoutlimits()Server limits configurationbooleanEnable Netty-level wire logging for the management interface.intport()The HTTP portproxy()Holds configuration related with proxy addressing forward.The timeout for the PROXY protocol handshake.Read-specific idle timeout. 0 means disabled.Socket receive buffer size.booleanEnable address reuse on the server socket.Socket send buffer size.intsoLinger()Socket linger timeout in seconds. -1 means disabled.ssl()The SSL configbooleanEnable TCP keepalive.TCP user timeout (linux native transport only). 0 means disabled.inttestPort()The HTTP portThe name of the TLS configuration to use.intThe value of the IP traffic class (TOS field) for outgoing packets.booleanWhether the HTTP server should treat the semicolon (;) as a query parameter delimiter, in addition to the ampersand (&).WebSocket Server configuration.Write-specific idle timeout. 0 means disabled.
-
Method Details
-
auth
ManagementRuntimeAuthConfig auth()Authentication configuration -
port
@WithDefault("9000") int port()The HTTP port -
testPort
@WithDefault("9001") int testPort()The HTTP port -
host
String host()The HTTP hostIn dev/test mode this defaults to localhost, in prod mode this defaults to 0.0.0.0
Defaulting to 0.0.0.0 makes it easier to deploy Quarkus to container, however it is not suitable for dev/test mode as other people on the network can connect to your development machine.
As an exception, when running in Windows Subsystem for Linux (WSL), the HTTP host defaults to 0.0.0.0 even in dev/test mode since using localhost makes the application inaccessible.
-
hostEnabled
@WithDefault("true") boolean hostEnabled()Enable listening to host:port -
cors
The CORS config -
hostValidation
The HTTP Host header validation -
ssl
ServerSslConfig ssl()The SSL config -
tlsConfigurationName
The name of the TLS configuration to use.If not set and the default TLS configuration is configured (
quarkus.tls.*) then that will be used. If a name is configured, it uses the configuration fromquarkus.tls.<name>.*If a name is configured, but no TLS configuration is found with that name then an error will be thrown.If no TLS configuration is set, and
quarkus.tls.*is not configured, then, `quarkus.management.ssl` will be used. -
handle100ContinueAutomatically
@WithName("handle-100-continue-automatically") @WithDefault("false") boolean handle100ContinueAutomatically()When set totrue, the HTTP server automatically sends `100 CONTINUE` response when the request expects it (with the `Expect: 100-Continue` header). -
useSemicolonAsQueryParamDelimiter
@WithDefault("false") boolean useSemicolonAsQueryParamDelimiter()Whether the HTTP server should treat the semicolon (;) as a query parameter delimiter, in addition to the ampersand (&).When set to
true, a request like/path?a=1;b=2is parsed as two parameters (a=1andb=2). When set tofalse(the default), the semicolon is treated as a literal character and the request yields a single parameter (a=1;b=2). -
limits
ServerLimitsConfig limits()Server limits configuration -
idleTimeout
Http connection idle timeout -
body
BodyConfig body()Request body related settings -
acceptBacklog
@WithDefault("-1") int acceptBacklog()The accept backlog, this is how many connections can be waiting to be accepted before connections start being rejected -
domainSocket
Path to a Unix Domain Socket. -
domainSocketEnabled
@WithDefault("false") boolean domainSocketEnabled()Enable listening to host:port -
header
Map<String,HeaderConfig> header()Additional HTTP Headers always sent in the response -
filter
Map<String,FilterConfig> filter()Additional HTTP configuration per path -
proxy
ProxyConfig proxy()Holds configuration related with proxy addressing forward. -
websocketServer
WebSocket Server configuration. -
tcpUserTimeout
TCP user timeout (linux native transport only). 0 means disabled. -
soLinger
@WithDefault("-1") int soLinger()Socket linger timeout in seconds. -1 means disabled. -
sendBufferSize
OptionalInt sendBufferSize()Socket send buffer size. When not set, the OS default is used. -
receiveBufferSize
OptionalInt receiveBufferSize()Socket receive buffer size. When not set, the OS default is used. -
readIdleTimeout
Read-specific idle timeout. 0 means disabled. -
writeIdleTimeout
Write-specific idle timeout. 0 means disabled. -
compressionContentSizeThreshold
@WithDefault("0") int compressionContentSizeThreshold()Minimum response body size (in bytes) to trigger compression. 0 means compress everything when compression is enabled. -
proxyProtocolTimeout
The timeout for the PROXY protocol handshake. When the PROXY protocol is enabled (quarkus.management.proxy.use-proxy-protocol=true), this configures how long the server waits for the PROXY protocol header before closing the connection. -
tcpKeepAlive
@WithDefault("false") boolean tcpKeepAlive()Enable TCP keepalive.This is an advanced setting. When enabled, the server sends TCP keepalive probes to detect dead connections.
-
logActivity
@WithDefault("false") boolean logActivity()Enable Netty-level wire logging for the management interface.This is an advanced setting. When enabled, all bytes sent and received on the server are logged at DEBUG level using the Netty logging handler. This produces a large volume of logs.
-
activityLogDataFormat
The format for Netty activity log data. Only used whenlog-activityis enabled.This is an advanced setting.
-
reuseAddress
@WithDefault("true") boolean reuseAddress()Enable address reuse on the server socket.This is an advanced setting. When enabled, the
SO_REUSEADDRoption is set on the server socket. -
trafficClass
@WithDefault("-1") int trafficClass()The value of the IP traffic class (TOS field) for outgoing packets.This is an advanced setting. Valid values range from 0 to 255. A value of
-1(the default) means the traffic class is not set. -
determinePort
default int determinePort(io.quarkus.runtime.LaunchMode launchMode)
-