Add hot reload capability for locally-managed tunnels. When a config file is specified (without --token), cloudflared now watches for changes and automatically reloads the configuration. Features: - File watching via fsnotify with 500ms debounce - Fallback polling every 30s for symlink rotation (Kubernetes ConfigMaps) - Manual reload via SIGHUP signal - Graceful handling of invalid configs (keeps current config) - Thread-safe with TryLock to skip concurrent reloads New files: - orchestration/local_config.go: Config file reading and validation - orchestration/local_watcher.go: File watcher with reload logic Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la> |
||
|---|---|---|
| .. | ||
| access | ||
| cliutil | ||
| flags | ||
| proxydns | ||
| tail | ||
| tunnel | ||
| updater | ||
| app_forward_service.go | ||
| app_resolver_service.go | ||
| app_service.go | ||
| common_service.go | ||
| generic_service.go | ||
| linux_service.go | ||
| macos_service.go | ||
| main.go | ||
| service_template.go | ||
| windows_service.go | ||