Lightweight proxy which listens for webhooks from TP-Link Omada; passes these on to a Gotify server.
1.8K
This is a lightweight proxy wrtten in Go which spawns a server to listen for incoming webhook requests from your TP-Link Omada network controller. It parses these requests, transforms them into a request that Gotify will understand, and passes them on to Gotify.
The code and binaries are at: https://github.com/Leeft/omada-to-gotify
Three environment variables are required to be set for this program to work:
GOTIFY_URL
GOTIFY_APP_TOKEN
OMADA_SHARED_SECRET
And you must expose port 8080 or this will do nothing useful.
See the README at Github for more information.
For docker-compose users, here's a compose file (I use it with Portainer) that works for me to run both Gotify and this webhook proxy. Note that this still requires you to add the environment variables below the section where you paste your compose file (rather than having them directly in your Dockerfile).
services:
gotify:
image: gotify/server:latest
ports:
- "9400:80"
volumes:
- gotify_data:/app/data
environment:
GOTIFY_SERVER_CORS_ALLOWORIGINS: ${GOTIFY_SERVER_CORS_ALLOWORIGINS}
GOTIFY_SERVER_STREAM_ALLOWEDORIGINS: ${GOTIFY_SERVER_STREAM_ALLOWEDORIGINS}
GOTIFY_SERVER_TRUSTEDPROXIES: ${GOTIFY_SERVER_TRUSTEDPROXIES}
restart: always
omada-to-gotify:
image: shiari/omada-to-gotify:latest
environment:
GOTIFY_URL: http://gotify:80/
GOTIFY_APP_TOKEN: ${GOTIFY_APP_TOKEN}
OMADA_SHARED_SECRET: ${OMADA_SHARED_SECRET}
ports:
- "8080:8080"
volumes:
gotify_data:
labels:
- "com.example.gotify.description=Persistent volume for the gotify server"
Content type
Image
Digest
sha256:cc0915883…
Size
3.6 MB
Last updated
8 months ago
docker pull shiari/omada-to-gotify