You can use the flag
--mutations string
Set mutation mode to allow, disallow, or strict. (default "allow")
BTW, The concept of “master slaver” doesn’t exist in Dgraph. But for what you wanna do you can do it setting that flag to “disallow”. It will be “read-only”.
$ dgraph alpha -h | grep mutation