Config to enable only http git access in gitlab.rb

I could find API way to set the config for "git_access_protocols". I would like to have this config set using gitlab.rb