Modify /var/www/matomo/config/config.ini.php
to enable the use of a reverse proxy
force_ssl = 1
assume_secure_protocol = 1
proxy_client_headers[] = HTTP_X_FORWARDED_FOR
proxy_host_headers[] = HTTP_X_FORWARDED_HOST
proxy_ips[] = 10.1.6.4/32
Note: This file is automatically modified each time the GUI Settings page is saved. Any manual config lines shouldn't be lost, likely re-arranged though.
Add the FQDN that will be used for external access to Administration β System β General settings β Trusted Matomo Hostname