Skip to content

A trivial web service that returns 501 Not Implemented for all requests except for health checks, which get 200 OK

License

Notifications You must be signed in to change notification settings

turnerlabs/turner-defaultbackend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turner-defaultbackend

A trivial web service that returns 501 Not Implemented for all requests except of health checks, which get 200 OK.

Configuration via the following env variables (all are optional):

  • PORT (default: 8001) - the port to listen on
  • HEALTHCHECK: (default: /healthz) - the URL that should return 200 OK
  • PRODUCT (default: "") - for inclusion in the body of the HEALTHCHECK response
  • ENVIRONMENT (default: "") - for inclusion in the body of the HEALTHCHECK response
  • ENABLE_LOGGING - set to true to log requests to stdout

About

A trivial web service that returns 501 Not Implemented for all requests except for health checks, which get 200 OK

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published