Skip to content

netoarmando/debug-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published