Files
mysql-tunnel/config.example.yaml
2026-09-21 16:46:55 +08:00

31 lines
639 B
YAML

# Copy to config.yaml and fill in real values.
# Do not commit config.yaml. Do not put tokens or passwords in logs.
listen:
host: 127.0.0.1
port: 13306
local_auth:
username: root
password: "123456"
tunnel:
url: "https://example.com/ntunnel_mysql.php?token=YOUR_TOKEN"
encode_base64: false
tls_insecure_skip_verify: false
remote:
host: "mysql"
port: 3306
username: "root"
password: "YOUR_PASSWORD"
database: "your_database"
charset: "utf8mb4"
options:
request_timeout: 30
max_connections: 5
log_level: info
log_sql: false
log_file: logs/tunnel.log # writes logs/tunnel-YYYY-MM-DD.log; keep 7 days