Add 'protocol' to config

As you suggested, now `protocol` can be set on module config.

Thanks!