mirror of
https://github.com/google/nomulus
synced 2026-09-28 18:55:37 +00:00
This PR creates a unified RegistryServlet that will serve all
non-console traffic. It also creates a jetty subproject that allows one
to run Nomulus on top of a standard Jetty 12 runtime.
`./gradlew :jetty:stage` will create a jetty base folder at
`jetty/build/jetty-base` where one is able spin up a local Nomulus server
by running the following command inside the folder:
```bash
java -jar ${JETTY_HOME}/start.jar
```
`JETTY_HOME` is a folder where the [Jetty runtime](https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-home/12.0.6/jetty-home-12.0.6.zip) is located.
This PR also adds a Gradle task to create a Nomulus image based on the
official Jetty image:
```bash
./gradlew :jetty:buildNomulusImage
```
48 lines
1.5 KiB
INI
48 lines
1.5 KiB
INI
# ---------------------------------------
|
|
# Module: http
|
|
# Enables a clear-text HTTP connector.
|
|
# By default clear-text HTTP/1.1 is enabled, and clear-text HTTP/2 may be added by enabling the "http2c" module.
|
|
# ---------------------------------------
|
|
--modules=http
|
|
|
|
### Clear-Text HTTP Connector Configuration
|
|
|
|
## The host/address to bind the connector to.
|
|
jetty.http.host=0.0.0.0
|
|
|
|
## The port the connector listens on.
|
|
# jetty.http.port=8080
|
|
|
|
## The connector idle timeout, in milliseconds.
|
|
# jetty.http.idleTimeout=30000
|
|
|
|
## The number of acceptors (-1 picks a default value based on number of cores).
|
|
# jetty.http.acceptors=1
|
|
|
|
## The number of selectors (-1 picks a default value based on number of cores).
|
|
# jetty.http.selectors=-1
|
|
|
|
## The ServerSocketChannel accept queue backlog (0 picks the platform default).
|
|
# jetty.http.acceptQueueSize=0
|
|
|
|
## The thread priority delta to give to acceptor threads.
|
|
# jetty.http.acceptorPriorityDelta=0
|
|
|
|
## Whether to enable the SO_REUSEADDR socket option.
|
|
# jetty.http.reuseAddress=true
|
|
|
|
## Whether to enable the SO_REUSEPORT socket option.
|
|
# jetty.http.reusePort=false
|
|
|
|
## Whether to enable the TCP_NODELAY socket option on accepted sockets.
|
|
# jetty.http.acceptedTcpNoDelay=true
|
|
|
|
## The SO_RCVBUF socket option to set on accepted sockets.
|
|
## A value of -1 indicates that the platform default is used.
|
|
# jetty.http.acceptedReceiveBufferSize=-1
|
|
|
|
## The SO_SNDBUF socket option to set on accepted sockets.
|
|
## A value of -1 indicates that the platform default is used.
|
|
# jetty.http.acceptedSendBufferSize=-1
|
|
|