A Dockerized Node.js app that exposes secure HTTP endpoints to forward requests to webhooks.
1.0K
A lightweight, Dockerized Node.js application that exposes secure HTTP endpoints which forward requests to local webhooks. Perfect for triggering smart home actions or internal services via public triggers like IFTTT ā without exposing your local webhooks directly.
config.jsonāāā config.json # Define your endpoints and target webhooks
āāā .env # Store your API key and port
āāā Dockerfile # Docker config
āāā index.js # Main application logic
āāā package.json # Dependencies and scripts
docker run -d \
-p 3000:3000 \
-e API_KEY=your_secret_key \
-v /path/to/config.json:/app/config.json \
samosadlaker/wled-relay:latest
Manual Setup:
config.json
{
"endpoints": [
{
"path": "/trigger-light",
"webhook": "http://host.docker.internal:4567/light"
},
{
"path": "/trigger-alarm",
"webhook": "http://host.docker.internal:4567/alarm"
}
]
}
.env
PORT=3000 # Server port
API_KEY=change_this # Required for all requests
Include your API key via either:
services:
relay:
image: samosadlaker/wled-relay:latest
ports:
- "3000:3000"
environment:
- API_KEY=${API_KEY}
volumes:
- ./config.json:/app/config.json
restart: unless-stopped
curl -X GET "http://your-server:3000/wled-on?key=your_key"
Content type
Image
Digest
sha256:0f0d5ed7aā¦
Size
56.1 MB
Last updated
over 1 year ago
docker pull samosadlaker/wled-relay