Skip to content

Commit ee56476

Browse files
committed
Simplify home server deployment: use Tailscale instead of Cloudflare
The home server already runs Tailscale, so no tunnel infrastructure is needed. Removes the Cloudflare Terraform config and cloudflared service. WEBAPP_URL is served via tailscale serve, same pattern as Vaultwarden.
1 parent edca18b commit ee56476

6 files changed

Lines changed: 1 addition & 106 deletions

File tree

.env.example

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,9 @@ BOT_TOKEN=1234567890:ABCdefGHIjklMNOpqrsTUVwxyz
1111
# ======================
1212
# Mini App Configuration
1313
# ======================
14-
WEBAPP_URL=https://your-domain.com
14+
WEBAPP_URL=https://your-tailscale-hostname.ts.net
1515
API_PORT=3001
1616

17-
# ======================
18-
# Cloudflare Tunnel
19-
# ======================
20-
# Create a tunnel at dash.cloudflare.com > Zero Trust > Networks > Tunnels
21-
# Point it to http://app:3001, then paste the tunnel token below
22-
CLOUDFLARE_TUNNEL_TOKEN=your-tunnel-token-here
23-
2417
# ======================
2518
# PostgreSQL Database
2619
# ======================

compose.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,5 @@ services:
4141
- ./data:/app/data:z # Only mount data directory, not entire source code
4242
command: bun index.ts
4343

44-
cloudflared:
45-
image: cloudflare/cloudflared:latest
46-
restart: always
47-
command: tunnel --no-autoupdate run
48-
environment:
49-
TUNNEL_TOKEN: ${CLOUDFLARE_TUNNEL_TOKEN}
50-
depends_on:
51-
- app
52-
5344
volumes:
5445
postgres_data:

deployment/clusters/home-server/terraform/main.tf

Lines changed: 0 additions & 49 deletions
This file was deleted.

deployment/clusters/home-server/terraform/outputs.tf

Lines changed: 0 additions & 10 deletions
This file was deleted.

deployment/clusters/home-server/terraform/terraform.tfvars.example

Lines changed: 0 additions & 5 deletions
This file was deleted.

deployment/clusters/home-server/terraform/variables.tf

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)