Remove internal TLS, add option for HTTPS redirection