Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mjarkk/haproxy-check-api
A api to check haproxy configs
https://github.com/mjarkk/haproxy-check-api
Last synced: about 1 month ago
JSON representation
A api to check haproxy configs
- Host: GitHub
- URL: https://github.com/mjarkk/haproxy-check-api
- Owner: mjarkk
- License: mit
- Created: 2019-03-04T19:13:58.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-07-10T08:42:00.000Z (over 5 years ago)
- Last Synced: 2024-06-19T15:07:02.736Z (5 months ago)
- Language: Go
- Homepage:
- Size: 1.45 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `haproxy-check-api` - A api to check haproxy configs
A small docker container just for checking if a haproxy config doesn't contains errors## Get
```
docker pull mjarkk/haproxy-check-api
```## Run
```
$ docker run --restart always --name haproxyCheckApi -d -p 8223:8223 haproxy-check-api
```## Usage
```
$ curl -X POST http://localhost:8223/checkHaProxy -F "file=@./haproxyConfig.cfg" -H "Content-Type: multipart/form-data"
```
If there are any errors it will return status code **400** with the error as response, if the config is oke it will return **OK** with status code **200**