Set up config for replication.