Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536# Cloudflare Tunnel: how aligned.click and agent.aligned.click reach this machine.## Copy to ~/.cloudflared/config.yml, or run with# `cloudflared tunnel --config deploy/tunnel.yml run`.## There is no inbound port. cloudflared holds an outbound connection to# Cloudflare and requests come back down it, which is why this works behind a# home router with nothing forwarded.## **The ingress points at the auth proxies, and must never point anywhere else.**# The app, the feed server and the OAuth sidecar all bind 127.0.0.1 and know# nothing about identity; the proxy is the thing that maps a cookie to a DID# and routes by path. A tunnel to the app directly would serve the product to# the internet with no login at all; a tunnel to the sidecar would publish the# credentials. agent.aligned.click is the opencode agent's own proxy, on a# different port so both products can share the box.## The catch-all 404 matters too: without it, a hostname pointed at this tunnel# by mistake would be served the proxy rather than refused.
tunnel: aligned
# No credentials-file: cloudflared resolves it from ~/.cloudflared using the# tunnel name and cert.pem, which keeps this file portable.
originRequest: connectTimeout: 30s noTLSVerify: false disableChunkedEncoding: false
ingress: - hostname: aligned.click service: http://127.0.0.1:8778 - hostname: agent.aligned.click service: http://127.0.0.1:8779 - service: http_status:404