Couchbase configuration file to set disable_ui_over_http

The document tells a REST way to do it:
curl -X POST -u Administrator:password http://127.0.0.1:8091/diag/eval -d 'ns_config:set(disable_ui_over_http, true)’

Where can I find the configuration file for updating disable_ui_over_http? Can we do it through couchbase-cli?