Skip to content

Commit

Permalink
Initial support for Jetty 10
Browse files Browse the repository at this point in the history
  • Loading branch information
tomzeller committed Jan 20, 2022
1 parent 022aefc commit 49110fc
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 23 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -14,7 +14,7 @@
<groupId>net.shibboleth.idp</groupId>
<artifactId>idp-jetty-base</artifactId>
<packaging>pom</packaging>
<version>9.4.1-SNAPSHOT</version>
<version>10-SNAPSHOT</version>

<properties>
<jetty94-dta-ssl.version>1.0.0</jetty94-dta-ssl.version>
Expand Down
1 change: 0 additions & 1 deletion src/main/resources/jetty-base/etc/idp-backchannel.xml
Expand Up @@ -53,7 +53,6 @@
<Set name="host"><Property name="jetty.ssl.host" default="0.0.0.0" /></Set>
<Set name="port"><Property name="idp.backchannel.port" default="8443" /></Set>
<Set name="idleTimeout"><Property name="jetty.ssl.timeout" default="30000"/></Set>
<Set name="soLingerTime"><Property name="jetty.ssl.soLingerTime" default="-1"/></Set>
<Set name="acceptorPriorityDelta"><Property name="jetty.ssl.acceptorPriorityDelta" default="0"/></Set>
<Set name="acceptQueueSize"><Property name="jetty.ssl.acceptQueueSize" default="0"/></Set>
</New>
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/jetty-base/modules/idp-logging.mod
Expand Up @@ -3,8 +3,6 @@ Shibboleth IdP Logging

[depend]
console-capture
logging-logback
logback-access

[files]
logs/
17 changes: 0 additions & 17 deletions src/main/resources/jetty-base/modules/logging-logback.mod

This file was deleted.

10 changes: 10 additions & 0 deletions src/main/resources/jetty-base/resources/jetty-logging.properties
@@ -0,0 +1,10 @@
## Set logging levels from: ALL, TRACE, DEBUG, INFO, WARN, ERROR, OFF
org.eclipse.jetty.LEVEL=INFO
## Configure a level for an arbitrary logger tree
#com.example.LEVEL=INFO
## Configure a level for specific logger
#com.example.MyComponent.LEVEL=INFO
## Configure JMX Context Name
# org.eclipse.jetty.logging.jmx.context=JettyServer
## Hide stacks traces in an arbitrary logger tree
#com.example.STACKS=false
7 changes: 5 additions & 2 deletions src/main/resources/jetty-base/start.d/idp-logging.ini
Expand Up @@ -4,5 +4,8 @@
# ---------------------------------------
--module=idp-logging

# Override logback version pinned in jetty-home/modules/logback-impl.mod
logback.version=1.2.10
# Override logback version pinned in jetty-home/modules/logging-logback.mod
# logback.version=1.2.10

# This seems to be needed in some cases to get early logging output.
-Dlogback.configurationFile=resources/logback.xml
27 changes: 27 additions & 0 deletions src/main/resources/jetty-base/start.d/requestlog.ini
@@ -0,0 +1,27 @@
# ---------------------------------------
# Module: requestlog
# Logs requests using CustomRequestLog and AsyncRequestLogWriter.
# ---------------------------------------
--module=requestlog

## Format string
# jetty.requestlog.formatString=%a - %u %{dd/MMM/yyyy:HH:mm:ss ZZZ|GMT}t "%r" %s %B "%{Referer}i" "%{User-Agent}i" "%C"

## Logging directory (relative to $jetty.base)
# jetty.requestlog.dir=logs

## File path
# jetty.requestlog.filePath=${jetty.requestlog.dir}/yyyy_mm_dd.request.log

## Date format for rollovered files (uses SimpleDateFormat syntax)
# jetty.requestlog.filenameDateFormat=yyyy_MM_dd

## How many days to retain old log files
# jetty.requestlog.retainDays=90

## Whether to append to existing file
# jetty.requestlog.append=false

## Timezone of the log file rollover
# jetty.requestlog.timezone=GMT

0 comments on commit 49110fc

Please sign in to comment.