https://github.com/fly-apps/hahooks-go
Incoming webhook handler example
https://github.com/fly-apps/hahooks-go
Last synced: 3 months ago
JSON representation
Incoming webhook handler example
- Host: GitHub
- URL: https://github.com/fly-apps/hahooks-go
- Owner: fly-apps
- Created: 2024-02-07T19:57:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-07T19:58:52.000Z (over 2 years ago)
- Last Synced: 2025-03-11T03:39:36.924Z (over 1 year ago)
- Language: Go
- Size: 5.86 KB
- Stars: 2
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HA Webhooks
A little web server used to receive webhooks, store them, and then fire off a job into a queue.
It's useful when implementing a HA cluster of servers (perhaps globally available).
Follow along at [https://fly.io/blog](#).
## Usage
1️⃣ Some things are hard-coded:
* SQS Message Queue
* S3 Bucket
2️⃣ Some env vars are needed (standard AWS credentials) as per [aws docs](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html).
### Building
```bash
# Build for your current machine
go build -o bin/hahooks
# Build for use on Fly.io
GOOS=linux GOARCH=amd64 build -o bin/hahooks
```
You can use the provided Dockerfile to run the application, or deploy it on Fly.io.