App Submission: Cloudflare Tunnel (#891)

This commit is contained in:
Oleg Koretsky 2024-01-09 22:14:37 +02:00 committed by GitHub
parent f6eae6fdc5
commit b6d28f06a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 77 additions and 0 deletions

1
cloudflared/.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
exports.sh -crlf

View File

View File

@ -0,0 +1,35 @@
version: "3.7"
services:
app_proxy:
environment:
APP_HOST: cloudflared-web
APP_PORT: 3000
web:
image: ghcr.io/radiokot/umbrel-cloudflared:1.0.1-cf.2023.10.0@sha256:77a0fe80bd9c8c1fa83290bbffbb1d478a047c4103ecd2aa5826bd9f19f84f18
hostname: cloudflared-web
restart: on-failure
stop_grace_period: 1s
depends_on:
- connector
volumes:
- ${APP_DATA_DIR}/data:/app/data
environment:
CLOUDFLARED_HOSTNAME: "cloudflared-connector"
CLOUDFLARED_METRICS_PORT: "${APP_CLOUDFLARED_METRICS_PORT}"
CLOUDFLARED_TOKEN_FILE: "/app/data/token"
connector:
image: ghcr.io/radiokot/umbrel-cloudflared-connector:1.0.0-cf.2023.10.0@sha256:4e8daf3826c1717cce0b37dda927f0a255ca87d6bb75e4d97e5412643a531abe
hostname: cloudflared-connector
restart: on-failure
stop_grace_period: 5s
volumes:
- ${APP_DATA_DIR}/data:/data
environment:
CLOUDFLARED_METRICS_PORT: "${APP_CLOUDFLARED_METRICS_PORT}"
CLOUDFLARED_TOKEN_FILE: "./data/token"
extra_hosts:
- "host.docker.internal:host-gateway"
- "${APP_DOMAIN}:host-gateway"

1
cloudflared/exports.sh Normal file
View File

@ -0,0 +1 @@
export APP_CLOUDFLARED_METRICS_PORT="40901"

View File

@ -0,0 +1,40 @@
manifestVersion: 1
id: cloudflared
name: Cloudflare Tunnel
tagline: Access your Umbrel apps from the Internet using Cloudflare network
category: networking
version: "2023.10.0 (web 1.0.1)"
port: 4499
description: >-
Start a secure tunnel to access your Umbrel apps from the Internet using the Cloudflare network.
With Cloudflare Tunnel, you do not send traffic to an external IP — instead,
this app contains a lightweight tunneling daemon (cloudflared) that creates outbound-only
connections to Cloudflare's global network.
To use this app, you must have a Cloudflare account set up with your own domain(s) configured.
Once you have set up a Cloudflare account, check out this guide with examples to configure your own tunnel:
https://github.com/Radiokot/umbrel-cloudflared/wiki/How-to-set-up-Cloudflare-Tunnel-on-your-Umbrel
⚠️ Apps accessible from the Internet incentivize attackers and bots to hack into them.
Only expose harmless apps or those having strong internal access control.
Powered by Cloudflare.
developer: Radiokot
website: https://www.cloudflare.com/products/tunnel/
submitter: Radiokot
submission: https://github.com/getumbrel/umbrel-apps/pull/891
repo: https://github.com/Radiokot/umbrel-cloudflared
support: https://github.com/Radiokot/umbrel-cloudflared/issues
gallery:
- 1.jpg
- 2.jpg
- 3.jpg
releaseNotes: ""
dependencies: []
path: ""
defaultUsername: ""
defaultPassword: ""