Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 1.07 KB

File metadata and controls

32 lines (24 loc) · 1.07 KB

Debug Tunnel

This project uses Docker Compose and Cloudflare Tunnel to securely expose a local service to the internet. Caddy acts as a reverse proxy for the mendhak/docker-http-https-echo container and also serves static files.

Setup

  1. Go to your Cloudflare dashboard: Zero Trust > Networks > Tunnels.

    1. Create a new tunnel.
  2. Add a new Public hostname. Service must be https://debug-caddy.

  3. Important: Use the following configuration settings:

    Origin configurations:
        noTLSVerify: On
        httpHostHeader:
            subdomain.your-cool-url.com
        originServerName:
            subdomain.your-cool-url.com
    
  4. Add your Cloudflare token to a .env file in the project root.

  5. Update the Caddyfile with subdomain.your-cool-url.com

  6. Start the services:

    docker-compose up -d
  7. Visit https://subdomain.your-cool-url.com in your browser.

Usage

Check the terminal request information (user-agent, client IPs, etc.) as output by the echo server.