The last command above tells you which version you’ve installed.įor versions older than 2.5.0, create a file called /etc/nf and put these contents inside: Install the updater tool on your Cloud Server: This is optional, but without it you’ll have less accurate location data on your visitors.įor better location tracking, use Maxmind’s GeoLite2 IP geolocation databases. ![]() Set SMTP server address as “ mail“, and SMTP Port as “ 25“: On your Matomo site, go to Settings > General Settings > Email server settings. Restart your Docker containers to apply the change: # Uncomment the next line to enable HSTS header. In the matomo: section, uncomment the bottom line so that it looks like this: Open /root/compose/docker-compose.yml in a text editor. # Uncomment the following two lines to redirect HTTP to HTTPS. If you want to redirect all HTTP traffic to HTTPS (as is recommended these days), open /root/compose/traefik.toml in a text editor and uncomment two lines so that it looks like this: Once you’ve done that, Traefik will generate Let’s Encrypt SSL certificates for you automatically! Browse to to see if it worked. ![]() All domains you list in MATOMO_DOMAINS must point to your server (via DNS records) for this to work. MATOMO_DOMAINS=,Restart your Docker containers to apply the change:Ĭonfigure your own domain as per the previous step. (Do the same for TRAEFIK_DOMAINS if you want to access the Traefik dashboard.) For example: Login to your Cloud Server and open /root/compose/.env in a text editor:Ĭhange MATOMO_DOMAINS to your own domain. When Matomo asks for your database information, enter the following:įollow the steps below to Use your own domain, Enable SSL/TLS and Enable outgoing email. You can find the password for the MySQL root user inside your Docker environment file:Ĭat /root/compose/.env | grep MATOMO_DB_PASSWORD Matomo will ask for some database information. You’ll be greeted by Matomo’s setup wizard. If you’re using your own domain, do that first before going through the setup wizard. In your browser, navigate to the hostname of your server (eg, ). You’ll know installation has finished when you see a login prompt. Click on the Console button next to your Cloud Server.The Panel will tell you the root password for your server.Have a cup of tea! Matomo will be ready in 5 minutes.Sed -i -e "s|^BASIC_AUTH=.*|BASIC_AUTH=$BASIC_AUTH|" /root/compose/.env Sed -i -e "s|^MATOMO_ADMIN_PASSWORD=.*|MATOMO_ADMIN_PASSWORD=`cat /dev/urandom | tr -dc '' | head -c14`|" /root/compose/.envīASIC_AUTH_PASSWORD="`cat /dev/urandom | tr -dc '' | head -c10`"īASIC_AUTH="`printf '%s\n' "$BASIC_AUTH_PASSWORD" | tee /root/compose/auth-password.txt | htpasswd -in admin`" ![]() ![]() Sed -i -e "s|^MATOMO_DB_PASSWORD=.*|MATOMO_DB_PASSWORD=`cat /dev/urandom | tr -dc '' | head -c14`|" /root/compose/.env Sed -i -e "s|^MATOMO_DB_ROOT_PASSWORD=.*|MATOMO_DB_ROOT_PASSWORD=`cat /dev/urandom | tr -dc '' | head -c14`|" /root/compose/.env # Fill /root/compose/.env with some randomly generated passwords. Sed -i -e "s|^TRAEFIK_DOMAINS=.*|TRAEFIK_DOMAINS=`hostname -f`|" /root/compose/.env # Use the hostname of the server as the main domain. # Traefik needs a file to store SSL/TLS keys and certificates. # If you'd rather inspect and install these files yourself, see:Ĭurl -fsSL -o /root/compose/docker-compose.ymlĬurl -fsSL -o /root/compose/traefik.toml # Check for security updates every night and install them. While ! apt-get -qq check do sleep 1s doneĪpt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-commonĪdd-apt-repository "deb `lsb_release -cs` stable"Ĭurl -fsSL `uname -s`-`uname -m` -o /usr/local/bin/docker-compose
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |