Files
drip/deployments/config.caddy.example.yaml
Gouryella 37d1bfc089 feat(client): Support predefined tunnel configuration and management commands
Added predefined tunnel functionality, allowing users to define multiple tunnels in the configuration file and start them by name, including the following improvements:
- Added --all flag to start all configured tunnels
- Added parameterless start command to list available tunnels
- Support configuration of multiple tunnel types (http, https, tcp)
- Support advanced configurations such as subdomains, transport protocols, and IP allowlists

refactor(deployments): Refactor Docker deployment configuration

Removed old Dockerfile and Compose configurations, added new deployment files:
- Removed .env.example and old Docker build files
- Added Caddy reverse proxy configuration file
- Added two deployment modes: standard and Caddy reverse proxy
- Added detailed server configuration example files

docs: Update documentation to include tunnel configuration and deployment guide

Updated Chinese and English README documents:
- Added usage instructions and configuration examples for predefined tunnels
- Expanded server deployment section to include direct TLS and reverse proxy modes
- Added server configuration reference table with detailed configuration item descriptions
- Added specific configuration methods for Caddy and Nginx reverse proxies
2026-01-15 17:18:27 +08:00

41 lines
1.2 KiB
YAML

# Drip Server Configuration (Caddy reverse proxy mode)
# Use with: docker-compose.caddy.yml
#
# Architecture:
# Client --[HTTPS/WSS]--> Caddy:443 --[HTTP/WS]--> drip-server:8443
# Client --[TCP tunnel]--> drip-server:20000-20100 (direct, no proxy)
# Server port - Caddy will proxy to this port (internal only)
port: 8443
# Domain for client connections (required)
domain: tunnel.example.com
# Domain for tunnel URLs (optional, defaults to domain)
# tunnel_domain: example.com
# Authentication token (optional, but recommended)
token: your-secret-token
# TLS disabled - Caddy handles TLS termination
tls_enabled: false
# Public port for URLs - set to 443 since Caddy serves on 443
public_port: 443
# TCP tunnel port range (exposed directly to clients, not through Caddy)
tcp_port_min: 20000
tcp_port_max: 20100
# Optional settings
# metrics_token: secret # Token for /metrics endpoint
# debug: false # Enable debug logging
# pprof_port: 6060 # Enable pprof profiling
# transports: # Allowed transports (default: tcp,wss)
# - tcp
# - wss
# tunnel_types: # Allowed tunnel types (default: http,https,tcp)
# - http
# - https
# - tcp