How to restrict Public API for Guest users on Internet?

i followed path in my linux server Couchbase-by-Example/07-deploy-digital-ocean then i found some of the files here.

i went to VI editor for both production-sync-gateway-config.json and sync-gateway-config.json and disabled true for GUEST user as like below.

But still im able accessing PUBLIC REST API on internet. my public REST API is myurl:4984/db/_all_docs

if this is wrong, where i can find my /db path of couchbase server on linux server.