Tunnels

Expose Syntropic137 to the internet for GitHub webhooks and remote access.

By default, Syntropic137 binds to 127.0.0.1:8137, localhost only. A tunnel exposes it to the internet so GitHub can deliver webhooks and you can access the dashboard remotely.

When You Need a Tunnel

Syntropic137's event polling covers most GitHub events without a tunnel: PRs, pushes, issues, self-healing CI, and more work out of the box. Tunnels are only required for two things:

  1. Real-time CI/CD events: workflow_run, check_suite, and other Actions events require webhook delivery. (check_run events are available via Checks API polling for zero-config self-healing.)
  2. Remote access: accessing the dashboard or API from outside your local network.

If you only use push/PR/issue/self-healing triggers and access the dashboard locally, you don't need a tunnel.

Cloudflare Tunnels

Syntropic137 includes Cloudflare Tunnel support in its Docker Compose stack via the tunnel profile.

Setup

  1. Install cloudflared and authenticate:
brew install cloudflare/cloudflare/cloudflared
cloudflared tunnel login
  1. Create a tunnel in the Cloudflare Zero Trust dashboard, set its public hostname service URL to http://gateway:8081, and copy the tunnel token. Port 8081 is the gateway listener that requires Basic Auth when SYN_API_PASSWORD is set; do not point the tunnel at port 80 or 8137, which have no authentication by default.

  2. Add three variables to your ~/.syntropic137/.env:

COMPOSE_PROFILES=tunnel
CLOUDFLARE_TUNNEL_TOKEN=your-tunnel-token-here
SYN_PUBLIC_HOSTNAME=syn137.yourdomain.com
  1. Restart the stack:
npx @syntropic137/setup stop
npx @syntropic137/setup start

The cloudflared container starts automatically and routes traffic from your domain to the gateway service. No port forwarding needed.

Updating the GitHub App Webhook URL

After setting up the tunnel, set your GitHub App's webhook URL to https://syn137.yourdomain.com/api/v1/webhooks/github. To open the App's settings page in your browser:

npx @syntropic137/setup github-app

Or navigate manually: GitHub → Settings → Developer Settings → Your App → Webhook URL.

Other Tunnel Options

Cloudflare Tunnels are the only option the setup CLI configures.

Do not forward localhost:8137 to the internet. Port 8137 is the gateway's port 80, which has no authentication while SYN_GATEWAY_BIND is loopback (the default), so a tunnel to it exposes the dashboard and API with no credential.

Another provider must reach the authenticated listener gateway:8081 with SYN_API_PASSWORD set. Port 8081 is not published to the host, so the tunnel client has to run as a container on the stack's Docker network, as cloudflared does.

Set SYN_PUBLIC_HOSTNAME in your .env to your tunnel's public URL regardless of which provider you use.

On this page