allow both http and https, and with or without chain cert
also allow both http and https for remoteStorage, and update config.sample.js