https://github.com/turnerlabs/turner-defaultbackend
A trivial web service that returns 501 Not Implemented for all requests except for health checks, which get 200 OK
https://github.com/turnerlabs/turner-defaultbackend
defaultbackend golang helloworld webserver
Last synced: 9 months ago
JSON representation
A trivial web service that returns 501 Not Implemented for all requests except for health checks, which get 200 OK
- Host: GitHub
- URL: https://github.com/turnerlabs/turner-defaultbackend
- Owner: turnerlabs
- License: apache-2.0
- Created: 2017-08-16T18:28:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2019-12-11T14:12:55.000Z (over 6 years ago)
- Last Synced: 2025-01-24T01:51:10.625Z (over 1 year ago)
- Topics: defaultbackend, golang, helloworld, webserver
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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