HUB
Sign inSign up

schenanigans/cfhelper

By schenanigans

•Updated over 1 year ago

Cloudflare Helper is an unofficial project to help with learning Cloudflare Solutions

Image
0

558

schenanigans/cfhelper repository overview

 ██████╗███████╗    ██╗  ██╗███████╗██╗     ██████╗ ███████╗██████╗ 
██╔════╝██╔════╝    ██║  ██║██╔════╝██║     ██╔══██╗██╔════╝██╔══██╗
██║     █████╗      ███████║█████╗  ██║     ██████╔╝█████╗  ██████╔╝
██║     ██╔══╝      ██╔══██║██╔══╝  ██║     ██╔═══╝ ██╔══╝  ██╔══██╗
╚██████╗██║         ██║  ██║███████╗███████╗██║     ███████╗██║  ██║
 ╚═════╝╚═╝         ╚═╝  ╚═╝╚══════╝╚══════╝╚═╝     ╚══════╝╚═╝  ╚═╝
                                                                     
                     Built by Tim Schneider

⁠CF Helper - Cloudflare Documentation Assistant

A multi-architecture Docker container that provides an AI-powered chat interface for Cloudflare documentation using Cloudflare's AI models.

⁠Quick Start

# Pull the image
docker pull schenanigans/cfhelper:latest

# Run with basic configuration
docker run -p 9876:1111 -p 9877:8080 --env-file .env schenanigans/cfhelper:latest

Access the interface at http://localhost:9876

⁠Multi-Architecture Support

This image supports both:

  • linux/amd64 (Intel/AMD processors)
  • linux/arm64 (Apple Silicon, ARM processors)

⁠Environment Variables

VariableDescriptionDefaultRequired
CF_ACCESS_CLIENT_IDCloudflare Access client ID-✅
CF_ACCESS_CLIENT_SECRETCloudflare Access client secret-✅
CF_ENDPOINTCF Helper Worker custom domain-✅
CF_WORKER_DOMAINCF Helper Worker .workers.dev domain-✅
EXTERNAL_PORTExternal HTTP port mapping9876❌
EXTERNAL_WEBSOCKET_PORTExternal WebSocket port mapping9877❌
LOG_LEVELLogging level (ERROR, WARN, INFO, DEBUG)INFO❌
TZTimezoneUTC❌
TURNSTILE_ENABLEDEnable Turnstile verificationfalse❌
TURNSTILE_SITE_KEYTurnstile site key-❌
TURNSTILE_SECRET_KEYTurnstile secret key-❌
CONFIG_PATHConfiguration directory path (for certificate uploads)./config❌
ENABLE_CERT_UPLOADEnable mTLS certificate uploadfalse❌
CERT_UPLOAD_TOKENCertificate upload authentication token-❌

⁠Docker Compose Example

services:
  cfhelper:
    image: schenanigans/cfhelper:latest
    ports:
      - "9876:1111"
      - "9877:8080"
    environment:
      - CF_ACCESS_CLIENT_ID=your_client_id
      - CF_ACCESS_CLIENT_SECRET=your_client_secret
      - CF_ENDPOINT=cfhelper.yourdomain.com     # Custom domain (primary)
      - CF_WORKER_DOMAIN=your-worker.workers.dev  # Workers.dev domain (fallback)
      - LOG_LEVEL=INFO
    volumes:
      - ./config:/app/config
    restart: unless-stopped

⁠Domain Configuration

CF Helper requires both custom domain and workers.dev domain configuration:

  • CF_ENDPOINT: Your custom domain (e.g., cfhelper.yourdomain.com) - used first
  • CF_WORKER_DOMAIN: Your workers.dev domain (e.g., your-worker.workers.dev) - fallback

Deployment Strategy:

  1. Initial Setup: Use workers.dev domain for health checks while setting up TLS/SSL for custom domain
  2. Production: Custom domain takes priority, workers.dev provides fallback during maintenance
  3. Security Hardening: Later comment out CF_WORKER_DOMAIN to force custom domain only

⁠Architecture

CF Helper connects to Cloudflare Workers that provide access to multiple AI models through Cloudflare's AI platform. The Worker handles authentication, model routing, and document search.

⁠Security

  • Uses Cloudflare Zero Trust Access for authentication
  • Optional Turnstile CAPTCHA protection
  • Support for mTLS certificates
  • No API keys stored in the container

⁠Tags

  • latest - Latest stable release
  • 1.1.0 - Specific version release
  • All tags support both AMD64 and ARM64 architectures
Tag summary
Recent tags
Content type
Image
Digest
sha256:d8247be52…
Size
69.2 MB
Last updated
over 1 year ago
docker pull schenanigans/cfhelper:latest