Definitely in the custom.properties file (/var/lib/dynatrace/gateway/config/custom.properties). Look in the config.properties for the corresponding keys and put them into custom.properties with desired values.
Looks some of them are not yet documented.
Yes these were not yet documented but I figured it out by talking to ONE support.
log_analytics_collector_enabled = false
extension_controller_enabled = false
Share it here if some have similar query.