# Webhook gate for the exe.dev PR-Agent recipe: https://exe.dev/deploy/pr-agent # Save as ~/pr-agent/nginx.conf. Everything but the webhook path is a 404. server { listen 80; client_max_body_size 25m; location = /api/v1/github_webhooks { limit_except POST { deny all; } proxy_pass http://pr-agent:3000; proxy_set_header Host $host; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto https; } location / { return 404; } }