Sanitized mirror from private repository - 2026-04-20 01:32:01 UTC
This commit is contained in:
30
hosts/vms/homelab-vm/cloudflare-tunnel.yaml
Normal file
30
hosts/vms/homelab-vm/cloudflare-tunnel.yaml
Normal file
@@ -0,0 +1,30 @@
|
||||
# Cloudflare Tunnel for Homelab-VM
|
||||
# Provides secure external access without port forwarding
|
||||
#
|
||||
# SETUP INSTRUCTIONS:
|
||||
# 1. Go to https://one.dash.cloudflare.com/ → Zero Trust → Networks → Tunnels
|
||||
# 2. Create a new tunnel named "homelab-vm-tunnel"
|
||||
# 3. Copy the tunnel token (starts with eyJ...)
|
||||
# 4. Replace TUNNEL_TOKEN_HERE below with your token
|
||||
# 5. In the tunnel dashboard, add these public hostnames:
|
||||
#
|
||||
# | Public Hostname | Service |
|
||||
# |------------------------|----------------------------|
|
||||
# | gf.vish.gg | http://localhost:3300 |
|
||||
# | ntfy.vish.gg | http://localhost:8081 |
|
||||
# | hoarder.thevish.io | http://localhost:3000 |
|
||||
# | binterest.thevish.io | http://localhost:21544 |
|
||||
#
|
||||
# 6. Deploy this stack
|
||||
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
cloudflared:
|
||||
image: cloudflare/cloudflared:latest
|
||||
container_name: cloudflare-tunnel
|
||||
restart: unless-stopped
|
||||
command: tunnel run
|
||||
environment:
|
||||
- TUNNEL_TOKEN=${TUNNEL_TOKEN}
|
||||
network_mode: host # Needed to access localhost services
|
||||
Reference in New Issue
Block a user