Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pottava/http-something-wrong
An endpoint for checking error situations.
https://github.com/pottava/http-something-wrong
docker golang webapp
Last synced: about 14 hours ago
JSON representation
An endpoint for checking error situations.
- Host: GitHub
- URL: https://github.com/pottava/http-something-wrong
- Owner: pottava
- Created: 2017-09-01T15:28:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-11-01T16:24:16.000Z (over 2 years ago)
- Last Synced: 2024-12-22T13:27:03.127Z (about 2 months ago)
- Topics: docker, golang, webapp
- Language: Go
- Homepage: https://hub.docker.com/r/pottava/http-sw/
- Size: 23.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTTP-Something-Wrong
[![GitHub Actions](https://github.com/pottava/http-something-wrong/workflows/Publish%20artifacts/badge.svg?branch=master)](https://github.com/pottava/http-something-wrong/actions)
[gcr.io/pottava/errs](https://gcr.io/pottava/errs/)
Supported tags and respective `Dockerfile` links:
・v1.1 ([Dockerfile](https://github.com/pottava/http-something-wrong/blob/master/Dockerfile))## Usage
### 1. Set environment variables
Environment Variables | Description |
------------------------- | ------------------------------------------------- |
ACCESS_LOG | Send access logs to /dev/stdout. (default: true) |
CONTENT_ENCODING | Compress response data if the request allows. (default: true) |### 2. Run the application
```bash
$ docker run -d --rm -p 8080:8080 gcr.io/pottava/errs:v1.1
$ open http://localhost:8080
```