Files
drip/deployments/config.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

38 lines
1.0 KiB
YAML

# Drip Server Configuration (Direct TLS mode)
# Use with: docker-compose.yml
# Server port (required)
port: 443
# 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 settings
# drip-server handles TLS directly, requires certificate files
tls_enabled: true
tls_cert: /app/certs/fullchain.pem
tls_key: /app/certs/privkey.pem
# TCP tunnel port range
tcp_port_min: 20000
tcp_port_max: 20100
# Optional settings
# public_port: 443 # Port to display in URLs (for reverse proxy)
# 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