##                          ##
##         BlueMap          ##
##     Webserver-Config     ##
##                          ##

# With this setting you can disable the integrated web-server.
# This is useful if you want to only render the map-data for later use, or if you setup your own webserver.
# Default is enabled
enabled: true

# The webroot that the server will host to the web.
# Usually this should be set to the same directory like in the webapp.conf!
# Default is "bluemap/web"
webroot: "bluemap/web"

# The port that the webserver listens to.
# Default is 8100
port: 8100

# Config-section for webserver-activity logging
log: {
  # The file where all the webserver-activity will be logged to.
  # Comment out to disable the logging completely.
  # Java String formatting syntax can be used to add time, see: https://docs.oracle.com/javase/8/docs/api/java/util/Formatter.html
  # Default is no logging
  file: "bluemap/logs/webserver.log"
  #file: "bluemap/logs/webserver_%1$tF_%1$tT.log"

  # Whether the logger should append to an existing file, or overwrite it
  # Default is false
  append: false

  # The format of the webserver-acivity logs.
  # The syntax is the java String formatting, see: https://docs.oracle.com/javase/8/docs/api/java/util/Formatter.html
  # Possible Arguments:
  #  1 - the source address (ignoring any xff headers)
  #  2 - the source address (using the (leftmost) xff header if provided)
  #  3 - the http-method of the request
  #  4 - the full request-address
  #  5 - the protocol version of the request
  #  6 - the status-code of the response
  #  7 - the status-message of the response
  # Default is "%1$s \"%3$s %4$s %5$s\" %6$s %7$s"
  format: "%1$s \"%3$s %4$s %5$s\" %6$s %7$s"
}