Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/quarckster/xakac

Forwards payloads to your local servers
https://github.com/quarckster/xakac

eventsource golang webhook

Last synced: 10 days ago
JSON representation

Forwards payloads to your local servers

Awesome Lists containing this project

README

        

# xakac

This CLI utility was inspired by [smee.io client](https://github.com/probot/smee-client). It
forwards payloads from remote servers to hosts in your network.

## Usage

`xakac -config /path/to/config.json`

In `config.json` you can define as many source-target pairs as you want:

```json
[
{
"source": "https://source_url_1",
"target": "https://target_url_1"
},
{
"source": "https://source_url_2",
"target": "https://target_url_2"
}
]
```

It's possible to specify sources and targets via environment variables:

`XAKAC_SOURCE_TARGET_1=https://source_url_1,https://target_url_1`

`XAKAC_SOURCE_TARGET_2=https://source_url_2,https://target_url_2`

`xakac` establishes connections to each source via
[event source](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) and forwards payloads
to a corresponding target.