https://github.com/decryptus/ca-trk-proxy
https://github.com/decryptus/ca-trk-proxy
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/decryptus/ca-trk-proxy
- Owner: decryptus
- Created: 2023-01-24T17:22:03.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-31T20:30:16.000Z (about 3 years ago)
- Last Synced: 2025-05-30T04:54:40.310Z (10 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## ca-trk-proxy project
ca-trk-proxy is a TCP proxy in a container based on HaProxy to communicate with Commanders Act Products from your infrastructure.
This proxy doesn't manage SSL/TLS certificates, you need to manage it before the container.
## Quickstart
Starting ca-trk-proxy
`docker-compose up -d`
See [docker-compose.yml](docker-compose.yml)
### Endpoints
#### HTTP requests (port 80)
Clients HTTP requests -> Load Balancer or HTTP Proxy (not mandatory) -> ca-trk-proxy on port 80 -> Commanders Act Products
#### HTTPS requests (port 443)
Clients HTTPS requests -> Load Balancer or HTTP Proxy with your SSL/TLS certificates -> ca-trk-proxy on port 443 -> Commanders Act Products
#### Health check for HTTP requests (port 8080)
Example:
```sh
curl http://127.0.0.1:8080
```
HTTP status code 200 if port 80 is healthy:
```html
200 OK
Service ready.
```
HTTP status code 503 if port 80 is unhealthy:
```html
503 Service Unavailable
No server is available to handle this request.
```
#### Health check for HTTPS requests (port 8443)
Example:
```html
curl http://127.0.0.1:8443
```
HTTP status code 200 if port 443 is healthy:
```html
200 OK
Service ready.
```
HTTP status code 503 if port 443 is unhealthy:
```html
503 Service Unavailable
No server is available to handle this request.
```
#### Health check for HTTP and HTTPS requests (port 8666)
Example:
```sh
curl http://127.0.0.1:8666
```
HTTP status code 200 if ports 80 and 443 are healthy:
```html
200 OK
Service ready.
```
HTTP status code 503 if ports 80 or 443 are unhealthy:
```html
503 Service Unavailable
No server is available to handle this request.
```