-
-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ feat(cloudflared-web): Add cloudflared-web docker-compose and config #2241
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"id": "cloudflared-web", | ||
"version": "2024.11.1", | ||
"image": "wisdomsky/cloudflared-web", | ||
"youtube": "", | ||
"docs_link": "", | ||
"big_bear_cosmos_youtube": "" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
# Configuration for cloudflared-web setup | ||
|
||
# Name of the big-bear-cloudflared-web application | ||
name: big-bear-cloudflared-web | ||
|
||
# Service definitions for the big-bear-cloudflared-web application | ||
services: | ||
# Service name: big-bear-cloudflared-web | ||
# The `big-bear-cloudflared-web` service definition | ||
big-bear-cloudflared-web: | ||
# Name of the container | ||
container_name: big-bear-cloudflared-web | ||
|
||
# Image to be used for the container | ||
image: wisdomsky/cloudflared-web:2024.11.1 | ||
|
||
# Container restart policy | ||
restart: unless-stopped | ||
|
||
# Network mode | ||
network_mode: host | ||
Comment on lines
+20
to
+21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Security: Reconsider using host network mode Using - network_mode: host
+ networks:
+ - cloudflared_network
+ ports:
+ - "14333:14333"
|
||
|
||
# Environment variables for the container | ||
environment: | ||
- WEBUI_PORT=14333 | ||
- EDGE_IP_VERSION=auto | ||
- PROTOCOL=auto | ||
- METRICS_ENABLE=false | ||
- METRICS_PORT=60123 | ||
- BASIC_AUTH_USER=admin | ||
- BASIC_AUTH_PASS="" | ||
Comment on lines
+30
to
+31
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Security: Empty basic auth password is a security risk The Consider:
|
||
|
||
x-casaos: # CasaOS specific configuration | ||
envs: | ||
- container: WEBUI_PORT | ||
description: | ||
en_us: "Web UI Port" | ||
- container: EDGE_IP_VERSION | ||
description: | ||
en_us: "Edge IP Version" | ||
- container: PROTOCOL | ||
description: | ||
en_us: "Protocol" | ||
- container: METRICS_ENABLE | ||
description: | ||
en_us: "Metrics Enable" | ||
- container: METRICS_PORT | ||
description: | ||
en_us: "Metrics Port" | ||
- container: BASIC_AUTH_USER | ||
description: | ||
en_us: "Basic Auth User" | ||
- container: BASIC_AUTH_PASS | ||
ports: | ||
- container: "14333" | ||
description: | ||
en_us: "Container Port: 14333" | ||
|
||
Comment on lines
+33
to
+58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Enhance environment variable configuration The environment variable definitions could be improved with:
Add validation and sensitivity markers: - container: BASIC_AUTH_PASS
+ sensitive: true
+ description:
+ en_us: "Basic Auth Password (required)"
+ - container: WEBUI_PORT
+ validation:
+ min: 1024
+ max: 65535
+ default: "14333"
|
||
# CasaOS specific configuration | ||
x-casaos: | ||
# Supported CPU architectures for the application | ||
architectures: | ||
- amd64 | ||
- arm64 | ||
# Main service of the application | ||
main: big-bear-cloudflared-web | ||
description: | ||
# Description in English | ||
en_us: Cloudflared-web is a docker image that packages both cloudflared cli and a simple Web UI to easily start or stop remotely-managed Cloudflare tunnel. | ||
tagline: | ||
# Short description or tagline in English | ||
en_us: Cloudflared Web | ||
# Developer's name or identifier | ||
developer: "wisdomsky" | ||
# Author of this configuration | ||
author: BigBearTechWorld | ||
# Icon for the application | ||
icon: https://cdn.jsdelivr.net/gh/walkxcode/dashboard-icons/png/cloudflare.png | ||
# Thumbnail image (currently empty) | ||
thumbnail: "" | ||
title: | ||
# Title in English | ||
en_us: Cloudflared Web | ||
# Application category | ||
category: BigBearCasaOS | ||
# Port mapping information | ||
port_map: "14333" | ||
# Tips | ||
tips: | ||
before_install: | ||
en_us: | | ||
Read this before installing: https://community.bigbeartechworld.com/t/added-cloudflared-web-to-bigbearcasaos/2275?u=dragonfire1119 | ||
Comment on lines
+89
to
+92
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Community link is accessible, but installation tips need enhancement The community link is valid and accessible (HTTP 200 response). However, the current setup lacks essential information directly in the compose file. Consider:
Example enhancement: tips:
before_install:
en_us: |
Quick setup:
1. Configure your Cloudflare credentials
2. Set up tunnel authentication
3. Ensure ports 14333 and 8080 are available
For detailed instructions: https://community.bigbeartechworld.com/t/added-cloudflared-web-to-bigbearcasaos/2275?u=dragonfire1119
Security recommendations:
- Use secure credentials storage
- Regularly update the image
- Monitor tunnel status 🔗 Analysis chainVerify the community link and enhance installation tips While providing a community link is helpful, consider:
Add health check configuration: image: wisdomsky/cloudflared-web:2024.11.1
+ healthcheck:
+ test: ["CMD", "curl", "-f", "http://localhost:14333"]
+ interval: 30s
+ timeout: 10s
+ retries: 3 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Verify if the community link is accessible
curl -I "https://community.bigbeartechworld.com/t/added-cloudflared-web-to-bigbearcasaos/2275"
Length of output: 1716 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add volume mounts for persistence
The configuration lacks volume mounts for persisting tunnel configurations and credentials. Without persistence, tunnel configurations will be lost when the container is recreated.
Add volume mounts:
📝 Committable suggestion