Implements a simple webserver based on the undertow.
- Deliver static content either from a file directory or from classpath
- Listening mode to bring a file directory to the web
- Reverse proxy: a comma-separated list of URLs are load balanced, called (the list can contain environment variables or system properties in notation: ${...}).
- SSL support for proxy: If no certificate is defined, a self-signed certificate is created.
- The jwebervser.properties inside the jar file can be used for static configurations (environment variables and system properties where resolved in notation: ${...}).
- cb - The toolarium common build
We use SemVer for versioning. For the versions available, see the tags on this repository.
dependencies {
implementation "com.github.toolarium:toolarium-jwebserver:1.2.2"
}
<dependency>
<groupId>com.github.toolarium</groupId>
<artifactId>toolarium-jwebserver</artifactId>
<version>1.2.2</version>
</dependency>
java -jar toolarium-jwebserver-1.2.2.jar
java -jar toolarium-jwebserver-1.2.2.jar -l
# start first webserver to listen on local directory on secure port with self-signed certificate
java -jar toolarium-jwebserver-1.2.2.jar -s 8443 -l
# start proxy to listen on previous started webserver (trustAll because of self-signed certificate)
java -jar toolarium-jwebserver-1.2.2.jar -s 8444 --trustAll --proxy https://localhost:8443