Config proxy, ssl and redirct http to https