Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to set the trusted host in latest version of Matomo. #4

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions matomo/rootfs/etc/s6-overlay/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ function install {
s6-setuidgid nginx /var/www/matomo/console plugin:activate ExtraTools

# Add additional configurations.
add_setting General "trusted_hosts[]" "${MATOMO_DEFAULT_HOST}"
add_setting General "assume_secure_protocol" "${MATOMO_ASSUME_SECURE_PROTOCOL}"
add_setting General "proxy_client_headers[]" "${MATOMO_PROXY_CLIENT_HEADERS}"
add_setting General "proxy_host_headers" "${MATOMO_PROXY_HOST_HEADERS}"
Expand All @@ -63,6 +64,7 @@ function install {
# shellcheck disable=SC2001
name=$(echo "${site}" | sed -e 's/MATOMO_SITE_\(.*\)_HOST/\1/')
s6-setuidgid nginx /var/www/matomo/console site:add --name="${name}" --urls="${!site}"
add_setting General "trusted_hosts[]" "${!site}"
done
}

Expand Down