Open Closed

Nginx reverse proxy blazer server auth failed #6097


User avatar
0
327992883@qq.com created

After the blazer server is deployed through nginx, when requesting the auth service redirect _uri is http instead of https, and through the logs of the auth service redirect _uri is also http, this redirect_uri How does need to be configured to obtain https?

  • ABP Framework version: vX.X.X
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

3 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    app.Use((httpContext, next) =>
    {
        httpContext.Request.Scheme = "https";
        return next();
    });
    

    https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-7.0#when-it-isnt-possible-to-add-forwarded-headers-and-all-requests-are-secure

  • User Avatar
    0
    327992883@qq.com created

    I made the changes, but they still have no effect,The image was initially uploaded incorrectly. The following is the correct log image

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    After the blazer server is deployed through nginx

    Is your website deployed as https?

    https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-7.0&tabs=linux-ubuntu

    Can you share an online URL?

    liming.ma@volosoft.com

Made with ❤️ on ABP v9.1.0-preview. Updated on November 01, 2024, 05:35