feat: add configurable custom HTML head injection (#118)

Allow deployers to inject custom HTML into the <head> of every page
via the CUSTOM_HEAD_HTML config option, useful for analytics scripts
(Plausible, Matomo, etc.) without modifying source.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jorijn Schrijvershof
2026-02-17 11:15:43 +01:00
committed by GitHub
parent de2290639f
commit edde12f17c
5 changed files with 42 additions and 0 deletions
+8
View File
@@ -148,6 +148,14 @@ RADIO_CODING_RATE=CR8
# TELEMETRY_RETRY_ATTEMPTS=2
# TELEMETRY_RETRY_BACKOFF_S=4
# =============================================================================
# Custom HTML (Analytics, etc.)
# =============================================================================
# Inject custom HTML into the <head> of every page.
# Useful for analytics scripts (Plausible, Matomo, etc.) without modifying source.
# Example for Plausible:
# CUSTOM_HEAD_HTML=<script defer data-domain="stats.example.com" src="https://plausible.io/js/script.js"></script>
# =============================================================================
# Paths (Native installation only)
# =============================================================================