Skip to content

Commit

Permalink
Merge pull request #4 from Islandora-Devops/mnt-jan-2024-update
Browse files Browse the repository at this point in the history
Need to set the trusted host in latest version of Matomo.
  • Loading branch information
g7morris authored Jan 30, 2024
2 parents bc16f1d + 48562c2 commit 2011334
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit 2011334

Please sign in to comment.