Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagetext
titleAvailable properties
linenumberstrue
# EMBEDDED SERVER CONFIGURATION (ServerProperties)
server:
  address:   # Network address to which the server should bind to.
	  compression:
    enabled:  false # IfWhether response compression is enabled.
		    excluded-user-agents:   # ListComma-separated list of user- agents tofor excludewhich from compression.
		responses should not be compressed.
    mime-types:  text/html,text/xml,text/plain,text/css,text/javascript,application/javascript,application/json,application/xml # Comma-separated list of MIME types that should be compressed.
		    min-response-size: 2048 2KB # Minimum response size"Content-Length" value that is required for compression to be performed.
	  connection-timeout:   # Time in milliseconds that connectors will wait for another HTTP request before closing the connection. When not set, the connector's container-specific default willis be used. Use a value of -1 to indicate no (i.e. that is, an infinite) timeout.
	context-parameters.*:  # Servlet context init parameters. For instance `server.context-parameters.a=alpha`
	context-path  error:
 # Context path of the application.
	display-name include-exception: application # Display name of the application.
	max-http-header-size: 0 # Maximum size in bytes of the HTTP message header.
	error:false # Include the "exception" attribute.
     include-stacktrace:  never # When to include a "stacktrace" attribute.
	    path:  /error # Path of the error controller.
	    whitelabel:
      enabled:  true # EnableWhether to enable the default error page displayed in browsers in case of a server error.
	  http2:
    enabled:  false # Whether to enable HTTP/2 support, if the current environment supports it.
  jetty:
    acceptors:  -1 # Number of acceptor threads to use. 	When the max-http-post-size: 0 # Maximum size in bytes of the HTTP post or put contentvalue is -1, the default, the number of acceptors is derived from the operating environment.
    accesslog:
      append:  false # Append to log.
      date-format:  dd/MMM/yyyy:HH:mm:ss Z # Timestamp format of the request log.
      enabled:  false # Enable access log.
    selectors  extended-format:  false # NumberEnable ofextended selectorNCSA threadsformat.
to use.
	jsp-servlet     file-date-format:   #  class-name: org.apache.jasper.servlet.JspServlet # The class name of the JSP servlet.
	  init-parameters.*:  # Init parameters used to configure the JSP servlet
	  registered: true # Whether or not the JSP servlet is registered
	port: Date format to place in log file name.
      filename:   # Log filename. If not specified, logs redirect to "System.err".
      locale:   # Locale of the request log.
      log-cookies:  false # Enable logging of the request cookies.
      log-latency:  false # Enable logging of request processing time.
      log-server:  false # Enable logging of the request hostname.
      retention-period:  31 # Number of days before rotated log files are deleted.
      time-zone:  GMT # Timezone of the request log.
    max-http-post-size:  200000B # Maximum size of the HTTP post or put content.
    selectors:  -1 # Number of selector threads to use. When the value is -1, the default, the number of selectors is derived from the operating environment.
  max-http-header-size:  8KB # Maximum size of the HTTP message header.
  port:  8080 # Server HTTP port.
	  server-header:   # Value to use for the Server response header (if empty, no header is sent).
if empty)
	servlet-path: / # Path of the main dispatcher servlet.
	use-forward-headers:  # If X-Forwarded-* headers should be applied to the HttpRequest.
	 use-forward-headers:   # Whether X-Forwarded-* headers should be applied to the HttpRequest.
  servlet:
    context-parameters.*:   # Servlet context init parameters.
    context-path:   # Context path of the application.
    application-display-name:  application # Display name of the application.
    jsp:
      class-name:  org.apache.jasper.servlet.JspServlet # Class name of the servlet to use for JSPs.
      init-parameters.*:   # Init parameters used to configure the JSP servlet.
      registered:  true # Whether the JSP servlet is registered.
    session:
      cookie:
        comment:   # Comment for the session cookie.
			        domain:   # Domain for the session cookie.
			        http-only:   # Whether to use "HttpOnly" flagcookies for the session cookiecookies.
			        max-age:   # Maximum age of the session cookie. in seconds.
			If a duration suffix is not specified, seconds will be used.
        name:   # Session cookie name.
			        path:   # Path of the session cookie.
			        secure:   # "Secure"Whether flagto foralways mark the session cookie as secure.
		      persistent:  false # PersistWhether to persist session data between restarts.
		      store-dir:   # Directory used to store session data.
		      timeout:  30m # Session timeout. inIf minutesa (Springduration Bootsuffix usesis secondsnot by defaultspecified, we'reseconds usingwill minutesbe asused.
tomcat/non embedded container takes this value as minutes).
		tracking-modes:   # Session tracking modes.
(one or more of the following: "cookie", "url", "ssl").
	ssl:
    ciphers:   # Supported SSL ciphers.
		    client-auth:   # Whether client authentication is wanted ("want") or needed ("need"). Requires a trust store.
		    enabled:  true # EnableWhether to enable SSL support.
		    enabled-protocols:   # Enabled SSL protocols.
		    key-alias:   # Alias that identifies the key in the key store.
		    key-password:   # Password used to access the key in the key store.
		    key-store:   # Path to the key store that holds the SSL certificate (typically a jks file).
		    key-store-password:   # Password used to access the key store.
		    key-store-provider:   # Provider for the key store.
		    key-store-type:   # Type of the key store.
		    protocol:  TLS # SSL protocol to use.
		    trust-store:   # Trust store that holds SSL certificates.
		    trust-store-password:   # Password used to access the trust store.
		    trust-store-provider:   # Provider for the trust store.
		    trust-store-type:   # Type of the trust store.
	  tomcat:
    accept-count:  100 # Maximum queue length for incoming connection requests when all possible request processing threads are in use.
		accesslog:       buffered:  true # BufferWhether to buffer output such that it is flushed only flushed periodically.
				      directory:  logs # Directory in which log files are created. Can be absolute or relative to the tomcatTomcat base dir.
or absolute.
				     enabled:  false # Enable access log.
				      file-date-format:  .yyyy-MM-dd # Date format to place in the log file name.
				      pattern:  common # Format pattern for access logs.
				      prefix:  access_log # Log file name prefix.
				      rename-on-rotate:  false # DeferWhether to defer inclusion of the date stamp in the file name until rotate time.
				      request-attributes-enabled:  false # Set request attributes for the IP address, Hostname, protocol, and port used for the request.
				      rotate:  true # EnableWhether to enable access log rotation.
				      suffix:  .log # Log file name suffix.
		    additional-tld-skip-patterns:   # Comma-separated list of additional patterns that match jars to ignore for TLD scanning.
		    background-processor-delay: 30 10s # Delay in seconds between the invocation of backgroundProcess methods. 		If a duration suffix is not specified, seconds will be used.
    basedir:   # Tomcat base directory. If not specified, a temporary directory willis be used.
		    internal-proxies:  10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|\\
        192\\.168\\.\\d{1,3}\\.\\d{1,3}|\\
        169\\.254\\.\\d{1,3}\\.\\d{1,3}|\\
        127\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|\\
        172\\.1[6-9]{1}\\.\\d{1,3}\\.\\d{1,3}|\\
        172\\.2[0-9]{1}\\.\\d{1,3}\\.\\d{1,3}|\\
        172\\.3[0-1]{1}\\.\\d{1,3}\\.\\d{1,3}\\
# regular      0:0:0:0:0:0:0:1\\
      ::1 # Regular expression matchingthat trustedmatches IP addresses.
		proxies that are to be trusted.
    max-connections:  10000 # Maximum number of connections that the server willaccepts accept and processprocesses at any given time.
		    max-http-post-size: 0 2MB # Maximum size in bytes of the HTTP post content.
		max-    max-swallow-size:  2MB # Maximum amount of request body to swallow.
    max-threads: 0 200 # Maximum amount of worker threads.
		    min-spare-threads: 0 10 # Minimum amount of worker threads.
		    port-header:  X-Forwarded-Port # Name of the HTTP header used to override the original port value.
		    protocol-header:   # Header that holds the incoming protocol, usually named "X-Forwarded-Proto".
		    protocol-header-https-value:  https # Value of the protocol header thatindicating indicateswhether that the incoming request uses SSL.
		    redirect-context-root:  true # Whether requests to the context root should be redirected by appending a / to the path.
		    remote-ip-header:   # Name of the httpHTTP header from which the remote ipIP is extracted. For instance, `X-FORWARDED-FOR`
		.
    resource.allow-caching:  true # Whether static resource caching is permitted for this web application.
    resource.cache-ttl:   # Time-to-live of the static resource cache.
    uri-encoding:  UTF-8 # Character encoding to use to decode the URI.
    use-relative-redirects:   # Whether HTTP 1.1 and later location headers generated by a call to sendRedirect will use relative or absolute redirects.

Full list of properties is available here.

...