Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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**