Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jritsema/defaultbackend
An HTTP server that returns 200 OK for "/", health checks, and 501 Not Implemented for all other requests.
https://github.com/jritsema/defaultbackend
backend containers default http
Last synced: about 2 months ago
JSON representation
An HTTP server that returns 200 OK for "/", health checks, and 501 Not Implemented for all other requests.
- Host: GitHub
- URL: https://github.com/jritsema/defaultbackend
- Owner: jritsema
- Created: 2022-01-21T17:09:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-03-19T02:28:07.000Z (11 months ago)
- Last Synced: 2024-03-19T03:33:13.364Z (11 months ago)
- Topics: backend, containers, default, http
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# defaultbackend
A tiny, lightweight HTTP server that returns 200 OK for "/", health checks, and 501 Not Implemented for all other requests.
Configuration via the following environment variables (all are optional):
- `PORT` (default: 8080) - the port to listen on
- `HEALTHCHECK` (default: /health) - the URL that should return 200 OKA pre-built image is published here https://gallery.ecr.aws/jritsema/defaultbackend
## Usage
```sh
docker run -it --rm public.ecr.aws/jritsema/defaultbackend
```## Development
```
Choose a make command to runvet vet code
test run unit tests
build build a binary
autobuild auto build when source files change
start build and run local project
dockerbuild build project into a container image
login login to ecr public
push push container image to registry
```