Jetty - Embedded Servlet Container Configuration
1
2
3
4
5
<dependency>
<groupId>org.apereo.cas</groupId>
<artifactId>cas-server-webapp-jetty</artifactId>
<version>${cas.version}</version>
</dependency>
1
implementation "org.apereo.cas:cas-server-webapp-jetty:${project.'cas.version'}"
1
2
3
4
5
6
7
8
9
dependencyManagement {
imports {
mavenBom "org.apereo.cas:cas-server-support-bom:${project.'cas.version'}"
}
}
dependencies {
implementation "org.apereo.cas:cas-server-webapp-jetty"
}
1
2
3
4
5
6
7
8
9
10
dependencies {
/*
The following platform references should be included automatically and are listed here for reference only.
implementation enforcedPlatform("org.apereo.cas:cas-server-support-bom:${project.'cas.version'}")
implementation platform(org.springframework.boot.gradle.plugin.SpringBootPlugin.BOM_COORDINATES)
*/
implementation "org.apereo.cas:cas-server-webapp-jetty"
}
Embedded Jetty Container
The following settings and properties are available from the CAS configuration catalog:
- Required
- Optional
- Signing & Encryption
- Hibernate & JDBC
- Email Servers
- LDAP & Active Directory
- Authentication
- Password Encoding
- Principal Transformation
- Password Policy
- Third Party
- Notes
server.jetty.accesslog.append=false
Append to log.
CAS Property:
|
1 |
server.jetty.accesslog.append=... |
1
server:
jetty:
accesslog:
append: "..."
1
java -Dserver.jetty.accesslog.append="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_APPEND="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.append="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.accesslog.custom-format=
Custom log format, see org.eclipse.jetty.server.CustomRequestLog. If defined, overrides the "format" configuration key.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Accesslog.
CAS Property: server.jetty.accesslog.custom-format
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.custom-format=...
1
server:
jetty:
accesslog:
custom-format: "..."
1
java -Dserver.jetty.accesslog.custom-format="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_CUSTOM_FORMAT="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.custom-format="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.accesslog.date-format=
How can I configure this property?
CAS Property: server.jetty.accesslog.date-format
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.date-format=...
1
server:
jetty:
accesslog:
date-format: "..."
1
java -Dserver.jetty.accesslog.date-format="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_DATE_FORMAT="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.date-format="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: server.jetty.accesslog.custom-format
.
server.jetty.accesslog.enabled=false
Enable access log.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Accesslog.
CAS Property: server.jetty.accesslog.enabled
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.enabled=...
1
server:
jetty:
accesslog:
enabled: "..."
1
java -Dserver.jetty.accesslog.enabled="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_ENABLED="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.enabled="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.accesslog.extended-format=
How can I configure this property?
CAS Property: server.jetty.accesslog.extended-format
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.extended-format=...
1
server:
jetty:
accesslog:
extended-format: "..."
1
java -Dserver.jetty.accesslog.extended-format="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_EXTENDED_FORMAT="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.extended-format="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: server.jetty.accesslog.format
.
server.jetty.accesslog.file-date-format=
Date format to place in log file name.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Accesslog.
CAS Property: server.jetty.accesslog.file-date-format
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.file-date-format=...
1
server:
jetty:
accesslog:
file-date-format: "..."
1
java -Dserver.jetty.accesslog.file-date-format="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_FILE_DATE_FORMAT="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.file-date-format="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.accesslog.filename=
Log filename. If not specified, logs redirect to "System.err".
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Accesslog.
CAS Property: server.jetty.accesslog.filename
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.filename=...
1
server:
jetty:
accesslog:
filename: "..."
1
java -Dserver.jetty.accesslog.filename="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_FILENAME="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.filename="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.accesslog.format=ncsa
Log format.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Accesslog.
CAS Property: server.jetty.accesslog.format
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.format=ncsa
1
server:
jetty:
accesslog:
format: "ncsa"
1
java -Dserver.jetty.accesslog.format="ncsa" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_FORMAT="ncsa"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.format="ncsa"
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.accesslog.ignore-paths=
Request paths that should not be logged.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Accesslog.
CAS Property: server.jetty.accesslog.ignore-paths
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.ignore-paths=...
1
server:
jetty:
accesslog:
ignore-paths: "..."
1
java -Dserver.jetty.accesslog.ignore-paths="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_IGNORE_PATHS="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.ignore-paths="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.accesslog.locale=
How can I configure this property?
CAS Property: server.jetty.accesslog.locale
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.locale=...
1
server:
jetty:
accesslog:
locale: "..."
1
java -Dserver.jetty.accesslog.locale="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_LOCALE="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.locale="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: server.jetty.accesslog.custom-format
.
server.jetty.accesslog.log-cookies=
How can I configure this property?
CAS Property: server.jetty.accesslog.log-cookies
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.log-cookies=...
1
server:
jetty:
accesslog:
log-cookies: "..."
1
java -Dserver.jetty.accesslog.log-cookies="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_LOG_COOKIES="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.log-cookies="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: server.jetty.accesslog.custom-format
.
server.jetty.accesslog.log-latency=
How can I configure this property?
CAS Property: server.jetty.accesslog.log-latency
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.log-latency=...
1
server:
jetty:
accesslog:
log-latency: "..."
1
java -Dserver.jetty.accesslog.log-latency="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_LOG_LATENCY="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.log-latency="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: server.jetty.accesslog.custom-format
.
server.jetty.accesslog.log-server=
How can I configure this property?
CAS Property: server.jetty.accesslog.log-server
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.log-server=...
1
server:
jetty:
accesslog:
log-server: "..."
1
java -Dserver.jetty.accesslog.log-server="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_LOG_SERVER="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.log-server="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: server.jetty.accesslog.custom-format
.
server.jetty.accesslog.retention-period=31
Number of days before rotated log files are deleted.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Accesslog.
CAS Property: server.jetty.accesslog.retention-period
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.retention-period=31
1
server:
jetty:
accesslog:
retention-period: "31"
1
java -Dserver.jetty.accesslog.retention-period="31" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_RETENTION_PERIOD="31"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.retention-period="31"
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.accesslog.time-zone=
How can I configure this property?
CAS Property: server.jetty.accesslog.time-zone
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.accesslog.time-zone=...
1
server:
jetty:
accesslog:
time-zone: "..."
1
java -Dserver.jetty.accesslog.time-zone="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_ACCESSLOG_TIME_ZONE="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.accesslog.time-zone="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: server.jetty.accesslog.custom-format
.
server.jetty.connection-idle-timeout=
Time that the connection can be idle before it is closed.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty.
CAS Property: server.jetty.connection-idle-timeout
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.connection-idle-timeout=...
1
server:
jetty:
connection-idle-timeout: "..."
1
java -Dserver.jetty.connection-idle-timeout="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_CONNECTION_IDLE_TIMEOUT="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.connection-idle-timeout="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.max-connections=-1
Maximum number of connections that the server accepts and processes at any given time.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty.
CAS Property: server.jetty.max-connections
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.max-connections=-1
1
server:
jetty:
max-connections: "-1"
1
java -Dserver.jetty.max-connections="-1" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_MAX_CONNECTIONS="-1"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.max-connections="-1"
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.max-http-form-post-size=200000B
Maximum size of the form content in any HTTP post request.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty.
CAS Property: server.jetty.max-http-form-post-size
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.max-http-form-post-size=200000B
1
server:
jetty:
max-http-form-post-size: "200000B"
1
java -Dserver.jetty.max-http-form-post-size="200000B" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_MAX_HTTP_FORM_POST_SIZE="200000B"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.max-http-form-post-size="200000B"
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.max-http-post-size=
How can I configure this property?
CAS Property: server.jetty.max-http-post-size
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.max-http-post-size=...
1
server:
jetty:
max-http-post-size: "..."
1
java -Dserver.jetty.max-http-post-size="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_MAX_HTTP_POST_SIZE="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.max-http-post-size="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
Deprecation status is ERROR
with a replacement setting: server.jetty.max-http-form-post-size
.
server.jetty.max-http-response-header-size=8KB
Maximum size of the HTTP response header.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty.
CAS Property: server.jetty.max-http-response-header-size
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.max-http-response-header-size=8KB
1
server:
jetty:
max-http-response-header-size: "8KB"
1
java -Dserver.jetty.max-http-response-header-size="8KB" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_MAX_HTTP_RESPONSE_HEADER_SIZE="8KB"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.max-http-response-header-size="8KB"
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.threads.acceptors=-1
Number of acceptor threads to use. When the value is -1, the default, the number of acceptors is derived from the operating environment.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Threads.
CAS Property: server.jetty.threads.acceptors
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.threads.acceptors=-1
1
server:
jetty:
threads:
acceptors: "-1"
1
java -Dserver.jetty.threads.acceptors="-1" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_THREADS_ACCEPTORS="-1"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.threads.acceptors="-1"
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.threads.idle-timeout=60000ms
Maximum thread idle time.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Threads.
CAS Property: server.jetty.threads.idle-timeout
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.threads.idle-timeout=60000ms
1
server:
jetty:
threads:
idle-timeout: "60000ms"
1
java -Dserver.jetty.threads.idle-timeout="60000ms" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_THREADS_IDLE_TIMEOUT="60000ms"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.threads.idle-timeout="60000ms"
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.threads.max=200
Maximum number of threads.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Threads.
CAS Property: server.jetty.threads.max
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.threads.max=200
1
server:
jetty:
threads:
max: "200"
1
java -Dserver.jetty.threads.max="200" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_THREADS_MAX="200"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.threads.max="200"
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.threads.max-queue-capacity=
Maximum capacity of the thread pool's backing queue. A default is computed based on the threading configuration.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Threads.
CAS Property: server.jetty.threads.max-queue-capacity
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.threads.max-queue-capacity=...
1
server:
jetty:
threads:
max-queue-capacity: "..."
1
java -Dserver.jetty.threads.max-queue-capacity="..." -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_THREADS_MAX_QUEUE_CAPACITY="..."
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.threads.max-queue-capacity="..."
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.threads.min=8
Minimum number of threads.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Threads.
CAS Property: server.jetty.threads.min
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.threads.min=8
1
server:
jetty:
threads:
min: "8"
1
java -Dserver.jetty.threads.min="8" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_THREADS_MIN="8"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.threads.min="8"
cas.war
with an embedded server container and can be found in the build/libs
directory.
server.jetty.threads.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.
org.springframework.boot.autoconfigure.web.ServerProperties$Jetty$Threads.
CAS Property: server.jetty.threads.selectors
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
.properties
files:
1
server.jetty.threads.selectors=-1
1
server:
jetty:
threads:
selectors: "-1"
1
java -Dserver.jetty.threads.selectors="-1" -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory. Note the placement of the system property which must be
specified before the CAS web application is launched.
1
2
3
export SERVER_JETTY_THREADS_SELECTORS="-1"
java -jar build/libs/cas.war
cas.war
with an embedded server container and can be found in the build/libs
directory.
1
java -jar build/libs/cas.war --server.jetty.threads.selectors="-1"
cas.war
with an embedded server container and can be found in the build/libs
directory.
Configuration Metadata
The collection of configuration properties listed in this section are automatically generated from the CAS source and components that contain the actual field definitions, types, descriptions, modules, etc. This metadata may not always be 100% accurate, or could be lacking details and sufficient explanations.
Be Selective
This section is meant as a guide only. Do NOT copy/paste the entire collection of settings into your CAS configuration; rather pick only the properties that you need. Do NOT enable settings unless you are certain of their purpose and do NOT copy settings into your configuration only to keep them as reference. All these ideas lead to upgrade headaches, maintenance nightmares and premature aging.
YAGNI
Note that for nearly ALL use cases, declaring and configuring properties listed here is sufficient. You should NOT have to explicitly massage a CAS XML/Java/etc configuration file to design an authentication handler, create attribute release policies, etc. CAS at runtime will auto-configure all required changes for you. If you are unsure about the meaning of a given CAS setting, do NOT turn it on without hesitation. Review the codebase or better yet, ask questions to clarify the intended behavior.
Naming Convention
Property names can be specified in very relaxed terms. For instance cas.someProperty
, cas.some-property
, cas.some_property
are all valid names. While all
forms are accepted by CAS, there are certain components (in CAS and other frameworks used) whose activation at runtime is conditional on a property value, where
this property is required to have been specified in CAS configuration using kebab case. This is both true for properties that are owned by CAS as well as those
that might be presented to the system via an external library or framework such as Spring Boot, etc.
When possible, properties should be stored in lower-case kebab format, such as cas.property-name=value
.
The only possible exception to this rule is when naming actuator endpoints; The name of the
actuator endpoints (i.e. ssoSessions
) MUST remain in camelCase mode.
Settings and properties that are controlled by the CAS platform directly always begin with the prefix cas
. All other settings are controlled and provided
to CAS via other underlying frameworks and may have their own schemas and syntax. BE CAREFUL with
the distinction. Unrecognized properties are rejected by CAS and/or frameworks upon which CAS depends. This means if you somehow misspell a property definition
or fail to adhere to the dot-notation syntax and such, your setting is entirely refused by CAS and likely the feature it controls will never be activated in the
way you intend.
Validation
Configuration properties are automatically validated on CAS startup to report issues with configuration binding, specially if defined CAS settings cannot be recognized or validated by the configuration schema. Additional validation processes are also handled via Configuration Metadata and property migrations applied automatically on startup by Spring Boot and family.
Indexed Settings
CAS settings able to accept multiple values are typically documented with an index, such as cas.some.setting[0]=value
. The index [0]
is meant to be
incremented by the adopter to allow for distinct multiple configuration blocks.