-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added src/main/resources/application.conf
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} |