https://github.com/quarckster/xakac
Forwards payloads to your local servers
https://github.com/quarckster/xakac
eventsource golang webhook
Last synced: 2 months ago
JSON representation
Forwards payloads to your local servers
- Host: GitHub
- URL: https://github.com/quarckster/xakac
- Owner: quarckster
- License: mit
- Created: 2020-01-25T18:08:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-13T10:57:53.000Z (about 4 years ago)
- Last Synced: 2025-04-03T11:13:58.343Z (about 1 year ago)
- Topics: eventsource, golang, webhook
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.