Follow https://mariadb.com/kb/en/setting-up-replication/
On master add:
# vim /etc/my.cnf.d/server.cnf [mariadb] expire_logs_days=7
Do not Use Global Transaction Id (GTID)
After sync, set the replica read-only:
# vim /etc/my.cnf.d/server.cnf [mariadb] read-only=ON
And restart mariadb on slave