Skip to content

Commit

Permalink
Added src/main/resources/application.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
aterga committed Oct 15, 2017
1 parent 1bd47bb commit f92ba13
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions src/main/resources/application.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
akka.http {

server {
# The default value of the `Server` header to produce if no
# explicit `Server`-header was included in a response.
# If this value is the empty string and no header was included in
# the request, no `Server` header will be rendered at all.
server-header = akka-http/${akka.http.version}

# "PREVIEW" features that are not yet fully production ready.
# These flags can can change or be removed between patch releases.
preview {
# ONLY WORKS WITH `bindAndHandleAsync` (currently)
#
# If this setting is enabled AND the akka-http2-support is found
# on the classpath the usual Http().bind... method calls will bind
# using HTTP/2. Please note that you must configure HTTPS while doing so.
enable-http2 = off
}

# The time after which an idle connection will be automatically closed.
# Set to `infinite` to completely disable idle connection timeouts.
idle-timeout = 60 s

# Defines the default time period within which the application has to
# produce an HttpResponse for any given HttpRequest it received.
# The timeout begins to run when the *end* of the request has been
# received, so even potentially long uploads can have a short timeout.
# Set to `infinite` to completely disable request timeout checking.
#
# If this setting is not `infinite` the HTTP server layer attaches a
# `Timeout-Access` header to the request, which enables programmatic
# customization of the timeout period and timeout response for each
# request individually.
request-timeout = 5 s
}
}

0 comments on commit f92ba13

Please sign in to comment.