Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/quarckster/xakac
- Owner: quarckster
- License: mit
- Created: 2020-01-25T18:08:45.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-05-13T10:57:53.000Z (over 2 years ago)
- Last Synced: 2024-06-21T16:58:21.054Z (5 months ago)
- Topics: eventsource, golang, webhook
- Language: Go
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- 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.