Support both http and https

- TODO: allow to configure ports