0


You need to log in to create posts and topics.

Question about the conversion from version 2.8 to 3.0 HttpsRedirectionPort

Hi,

In the web.config was added new.

<environmentVariables>
    <environmentVariable name="ASPNETCORE_HTTPS_PORT" value="44350" />
    <environmentVariable name="COMPLUS_ForceENC" value="1" />
    <environmentVariable name="ASPNETCORE_ENVIRONMENT" value="Development" />
</environmentVariables>

Do I have to set this environment variable on the production server?

Hello,

This block is an auto-generated field by IISExpress for development.
You can change them to match your Production environment during deployment or totally omit them as they are specified/overridden in other places.

Regards,
Eben Monney

Hello Eben,

thanks for your anser. In the Version 2.8 in the appsettings.json you have the entry:

"HttpsRedirectionPort": 443, //Set this to enable https redirection in 3.0

"https_port": 5001, //Set this for https redirection (e.g. 443)

In version 2.8 you use this:

if (!_env.IsDevelopment() && !string.IsNullOrWhiteSpace(Configuration["HttpsRedirectionPort"]))
{
    services.AddHttpsRedirection(options =>
    {
        options.HttpsPort = int.Parse(Configuration["HttpsRedirectionPort"]);
    });
}

In version 3.0 I can nowhere find where the entry "https_port" is used.  Does the https port have to be specified in the "ApplicationUrl"?

regards Ingo