Web Server

Port

The default port of the web server is 7080. This can be changed, e.g. if there is a conflict with another application.


server:
  applicationConnectors:
    - type: http
      port: 8080

External URL

If the application is run behind another web server, e.g. for HTTPS or to change the path where the services are accessible, the external URL must be configured.

A common use case would be to use Apache HTTP Server to set up a ProxyPass from https://example.org/ldproxy to http://ldproxy-host:7080. Then the following would need to be configured:


server:
  externalUrl: https://example.org/ldproxy

Request-Logging

Request logging is disabled by default. This example would enable writing request logs to data/log/requests.log. It also enables daily log rotation and keeps old logs zipped for a week.


server:
  requestLog:
    type: classic
    timeZone: Europe/Berlin
    appenders:
      - type: file
        currentLogFilename: data/log/requests.log
        archive: true
        archivedLogFilenamePattern: data/log/requests-%d.zip
        archivedFileCount: 7