Skip to content

feat: add option to disable auto config reload#607

Merged
robinbraemer merged 1 commit into
masterfrom
feat/disable-auto-config-reload
Dec 8, 2025
Merged

feat: add option to disable auto config reload#607
robinbraemer merged 1 commit into
masterfrom
feat/disable-auto-config-reload

Conversation

@robinbraemer

Copy link
Copy Markdown
Member

Adds support for disabling automatic config file reloading via:

  • --no-auto-reload command line flag
  • GATE_NO_AUTO_RELOAD environment variable
  • noAutoReload: true config file option

This addresses issue #602 where auto reload fails with permission denied errors in environments like NixOS with sops-nix where file watching is not available or causes issues.

Changes:

  • Added --no-auto-reload flag to CLI
  • Added GATE_NO_AUTO_RELOAD environment variable support
  • Added noAutoReload config option support
  • Updated documentation to reflect the new disable option

Usage examples:

# Via flag
gate --no-auto-reload

# Via environment variable
GATE_NO_AUTO_RELOAD=true gate

# Via config file
# config.yml:
noAutoReload: true

Fixes #602

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 8, 2025

Copy link
Copy Markdown

Deploying gate-minekube with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8dc193b
Status:⚡️  Build in progress...

View logs

Add --no-auto-reload flag, GATE_NO_AUTO_RELOAD env var, and
noAutoReload config option to disable automatic config file reloading.

This addresses issue #602 where auto reload fails with permission
denied errors in environments like NixOS with sops-nix where file
watching is not available or causes issues.

Changes:
- Added NoAutoReload field to Config struct
- Added --no-auto-reload CLI flag
- Added GATE_NO_AUTO_RELOAD env var support
- Updated documentation

Fixes #602
@robinbraemer robinbraemer force-pushed the feat/disable-auto-config-reload branch from cddb341 to 8dc193b Compare December 8, 2025 12:40
@robinbraemer robinbraemer merged commit fb7d2a8 into master Dec 8, 2025
4 of 5 checks passed
@robinbraemer robinbraemer deleted the feat/disable-auto-config-reload branch December 8, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Disable auto config reload

1 participant