[web-analytics] main: Allow Matomo to work if it's behind a proxy (or CDN)
| From: | Derick Rethans | Date: | Wed, 24 Sep 2025 12:48:01 +0000 |
| Subject: | [web-analytics] main: Allow Matomo to work if it's behind a proxy (or CDN) | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-33218@lists.php.net to get a copy of this message | ||
Author: Derick Rethans (derickr)
Date: 2025-09-24T13:43:23+01:00
Commit: https://github.com/php/web-analytics/commit/8f1080cee76240eede4a3796dd637d0f8fe2a847
Raw diff: https://github.com/php/web-analytics/commit/8f1080cee76240eede4a3796dd637d0f8fe2a847.diff
Allow Matomo to work if it's behind a proxy (or CDN)
Changed paths:
M www/config/config.ini.php
Diff:
diff --git a/www/config/config.ini.php b/www/config/config.ini.php
index c7d03bd3..0e594045 100644
--- a/www/config/config.ini.php
+++ b/www/config/config.ini.php
@@ -14,6 +14,8 @@
salt = "PLACEHOLDERFORSALT-REPLACEDONDEPLOY";
trusted_hosts[] = "analytics.php.net"
browser_archiving_disabled_enforce = 1
+proxy_client_headers[] = HTTP_X_FORWARDED_FOR
+proxy_host_headers[] = HTTP_X_FORWARDED_HOST
[log]
log_level = "INFO"