-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved tests so that port can be randomly assigned.
- Loading branch information
Showing
5 changed files
with
234 additions
and
23 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
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
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
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
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,145 @@ | ||
|
||
application { | ||
|
||
env = dev | ||
|
||
version = "1.0" | ||
|
||
name="proteus" | ||
|
||
path = "/v1" | ||
|
||
host = "localhost" | ||
|
||
ports { | ||
http = 0 | ||
# https = 8443 | ||
} | ||
|
||
charset = UTF-8 | ||
|
||
fallbackHandler = "io.sinistral.proteus.server.handlers.ServerFallbackHandler" | ||
|
||
defaultResponseListener = "io.sinistral.proteus.server.handlers.ServerDefaultResponseListener" | ||
|
||
tmpdir = ${java.io.tmpdir}/${application.name} | ||
|
||
# path to default favicon file | ||
favicon = "/io/sinistral/proteus/favicon.ico" | ||
|
||
} | ||
|
||
api.version="v1" | ||
|
||
globalHeaders | ||
{ | ||
# Access-Control-Allow-Origin: "*" | ||
# Access-Control-Allow-Methods: "*" | ||
# Access-Control-Allow-Headers: "*" | ||
Server = ${application.name} | ||
} | ||
|
||
health { | ||
statusPath = "/internal/status" | ||
} | ||
|
||
|
||
|
||
assets { | ||
# the base path assets will be server from | ||
path = "/public" | ||
# the directory to load the assets from | ||
dir = "./assets" | ||
cache { | ||
# cache timeout for the assets | ||
time = 500 | ||
} | ||
|
||
|
||
} | ||
|
||
|
||
|
||
swagger { | ||
# the path that has an index.html template and theme css files | ||
resourcePrefix="io/sinistral/proteus/swagger" | ||
# swagger version | ||
swagger="2.0" | ||
info { | ||
# swagger info title | ||
title = ${application.name} | ||
# swagger info version | ||
version = ${application.version} | ||
} | ||
# swagger-ui theme from ostranme's swagger-ui-themes, the following are built-in [feeling-blue, flattop, material, monokai, muted, newspaper, outline] | ||
# specifying a different name causes the SwaggerService to search in {swagger.resourcePrefix}/themes for a file named "theme-{swagger.theme}.css" | ||
theme="default" | ||
# where the swagger endpoints will be mounted | ||
basePath= ${application.path}"/swagger" | ||
# where redoc will be mounted relative to swagger base path | ||
redocPath= "redoc" | ||
#the name of the spec file | ||
specFilename="swagger.json" | ||
consumes = ["application/json"] | ||
produces = ["application/json"] | ||
port = ${application.ports.http} | ||
|
||
security = | ||
{ | ||
apiKeys = [ | ||
{ | ||
key="defaultApiKey" | ||
in="HEADER", | ||
name="default-api-key" | ||
value="123456789" | ||
} | ||
] | ||
|
||
# basicRealms = | ||
# [ | ||
# { | ||
# name = defaultBasic | ||
# identities = | ||
# [ | ||
# "username:password" | ||
# ] | ||
# } | ||
# ] | ||
} | ||
|
||
|
||
} | ||
|
||
undertow | ||
{ | ||
server { | ||
enableHttp2 = false | ||
alwaysSetDate = true | ||
alwaysSetKeepAlive = false | ||
recordRequestStartTime = false | ||
maxEntitySize = 100M | ||
bufferPipelinedData = false | ||
} | ||
|
||
socket { | ||
backlog = 10000 | ||
} | ||
|
||
|
||
ssl { | ||
enabled=false | ||
keystorePath="development.jks" | ||
truststorePath="development.ts" | ||
keystorePassword="password" | ||
truststorePassword="password" | ||
} | ||
|
||
enableHttp2=false | ||
# x AvailableProcessors | ||
ioThreads = 16 | ||
workerThreads = 200 | ||
bufferSize = 16K | ||
directBuffers = true | ||
} | ||
|
||
|