feat: add WIREGUARD_STATUS_CACHE_REFRESH_INTERVAL environment variable for configurable cache refresh rate

This commit is contained in:
Eduardo Silva
2026-01-13 19:42:23 -03:00
parent 3b03dc8404
commit 5c54b4a525
7 changed files with 77 additions and 9 deletions

View File

@@ -15,7 +15,11 @@ TIMEZONE=America/Sao_Paulo
# Lower this value if the initial peer list feels slow.
# 0 = disable preload, 9 = fully prefill traffic charts.#
# WIREGUARD_STATUS_CACHE_WEB_LOAD_PREVIOUS_COUNT=9
#
# How often (in seconds) the cache should be refreshed.
# Allowed values: 30, 60, 150, 300. Default: 60.
# WIREGUARD_STATUS_CACHE_REFRESH_INTERVAL=60
#
# If you need additional hosts to be allowed, you can specify them here.
# The SERVER_ADDRESS will always be allowed.
# Example: EXTRA_ALLOWED_HOSTS=app1.example.com,app2.example.com:8443,app3.example.com