mirror of
https://github.com/temetro/temetro.git
synced 2026-08-22 07:56:38 +00:00
feat(backend): one-command Dockerized cloudflared tunnel
Add `npm run docker:tunnel` (docker-compose.tunnel.yml overlay): a cloudflared sidecar opens a public quick tunnel to the backend, and the backend auto-discovers its https://…trycloudflare.com URL from cloudflared's metrics endpoint (services/relay-url.ts) and bakes it into the wallet-import QR — so a phone on any network can scan, with no install/account/PUBLIC_RELAY_URL. PUBLIC_RELAY_URL still wins when set. Verified end-to-end: the backend logs the discovered tunnel URL on startup. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
"scripts": {
|
||||
"dev": "tsx watch src/index.ts",
|
||||
"dev:tunnel": "node scripts/dev-tunnel.mjs",
|
||||
"docker:tunnel": "docker compose -f docker-compose.yml -f docker-compose.tunnel.yml up --build",
|
||||
"build": "tsc -p tsconfig.json",
|
||||
"start": "node dist/index.js",
|
||||
"typecheck": "tsc --noEmit",
|
||||
|
||||
Reference in New Issue
Block a user