[bitnami/matomo] Proxy host headers (#6969)

* Implemented MATOMO_PROXY_HOST_HEADER

Use the MATOMO_PROXY_HOST_HEADER environment variable to configure the proxy_host_headers-matomo setting

Signed-off-by: JoostVanDerSluis <44533996+JoostVanDerSluis@users.noreply.github.com>

* Documented MATOMO_PROXY_HOST_HEADER

Signed-off-by: JoostVanDerSluis <44533996+JoostVanDerSluis@users.noreply.github.com>

Signed-off-by: JoostVanDerSluis <44533996+JoostVanDerSluis@users.noreply.github.com>
This commit is contained in:
JoostVanDerSluis 2022-10-18 11:21:49 +02:00 committed by GitHub
parent 8de1944136
commit bddea6cad6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -159,6 +159,11 @@ EOF
info "Configuring Matomo to check proxy_client_headers for client IP"
ini-file set -s "General" -k "proxy_client_headers[]" -v "$MATOMO_PROXY_CLIENT_HEADER" "$MATOMO_CONF_FILE"
fi
if ! is_empty_value "$MATOMO_PROXY_HOST_HEADER"; then
info "Configuring Matomo to check proxy_host_headers for client IP"
ini-file set -s "General" -k "proxy_host_headers[]" -v "$MATOMO_PROXY_HOST_HEADER" "$MATOMO_CONF_FILE"
fi
if is_boolean_yes "$MATOMO_ENABLE_ASSUME_SECURE_PROTOCOL"; then
info "Configuring Matomo to always assume secure protocol"

View File

@ -291,6 +291,7 @@ If you are connecting through a reverse proxy (https-to-http) and Matomo is not
- `MATOMO_ENABLE_ASSUME_SECURE_PROTOCOL`: Enable 'assume_secure_protocol' in Matomo configuration file. Default: **no**
- `MATOMO_ENABLE_FORCE_SSL`: Enable 'force_ssl' in Matomo configuration file. Default: **no**
- `MATOMO_PROXY_CLIENT_HEADER`: Specify the the client IP HTTP Header. Usually 'HTTP_X_FORWARDED_FOR'. No defaults.
- `MATOMO_PROXY_HOST_HEADER`: Specify the the host IP HTTP Header. Usually 'HTTP_X_FORWARDED_HOST'. No defaults.
##### Example