- Add FastAPI webhook receiver for Forgejo push events - Add setup script for server deployment - Add Caddy snippet for webhook endpoint - Add local sync-schemas.sh helper script - Sync frontend schemas with source (archived deprecated slots) Infrastructure scripts staged for optional webhook deployment. Current deployment uses: ./infrastructure/deploy.sh --frontend
16 lines
456 B
Text
16 lines
456 B
Text
# GLAM Deploy Webhook - Add to bronhouder.nl site block
|
|
# Insert after the /health handler
|
|
#
|
|
# This handles webhook callbacks from Forgejo for automatic schema deployment
|
|
#
|
|
# To add to /etc/caddy/Caddyfile, insert within the bronhouder.nl block:
|
|
|
|
# Webhook endpoint for Forgejo push events
|
|
handle /webhook/deploy* {
|
|
reverse_proxy 127.0.0.1:8099 {
|
|
transport http {
|
|
read_timeout 120s
|
|
write_timeout 120s
|
|
}
|
|
}
|
|
}
|