Sign inSign up

christianacca/kestrel-whoami

By christianacca

•Updated about 5 years ago

ASP.Net core web api used to echo http request headers and webserver host name

Image
0

922

christianacca/kestrel-whoami repository overview

⁠kestrel-whoami

ASP.Net core web api running kestrel webserver used to echo http request headers and webserver host name

⁠Running

Using docker run command

  • docker run --rm -it -p 5000:80 -e Kestrel__Limits__KeepAliveTimeout=00:00:20 christianacca/kestrel-whoami
  • browse to http://localhost:5000⁠

Using docker-compose

⁠Supported settings

See Kestrel options⁠ for an explanation of each setting that can be supplied

Settings can be supplied by:

  • docker config (swarm mode only) to supply an appsettings.json file
  • docker volume to supply an appsettings.json file
  • docker environment variable. See docker-compose.yml⁠ for an example

⁠Build / Publish

  • Build only: ./build.ps1
  • Build + publish: ./build.ps1 -Tag n.n.n -Publish -Credential christianacca
    • replace 'n.n.n' with the sematic version that describes the change EG: 1.0.0

Tag summary

Content type

Image

Digest

Size

82 MB

Last updated

about 5 years ago

docker pull christianacca/kestrel-whoami