Installing nopcommerce 4.3 on ubuntu and issues about https

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 года назад
Hello,
I install nop 4.3 on a Ubuntu machine using Nginx as a reverse proxy and also behind cloudflare service.
First I have too many redirect errors when I try to open login page, but by enabling SSL on Store table , it works fine.
Then I try to set  "UseHttpXForwardedProto": true in appsettings, but by doing that again I face with too many redirect error.
I have a custom plugin to login to store by OpenId Connect, it works fine on 4.2, I upgrade it to 4.3, but now when authorize message return to nopcommerce it show page not found error message, I thought it must be related to   "UseHttpXForwardedProto": false, that Now I have in settings.
How can I fix too many redirect error while keep   "UseHttpXForwardedProto": true ?

I check the Nginx log, it seems that all connection recorded as http:// instead of https:// while I force using https, it important when I use External Authentication services, return Uri reported as a http:// address,
Is there any tested document illustrate how to install nop on Ubuntu + Nginx + Clouflare ?

Thank you
3 года назад
Facing same problem here as well, Did you find a solution?
2 года назад
The solution:
1.  Doing all the settings exist in the following link:
https://docs.nopcommerce.com/en/getting-started/advanced-configuration/how-to-install-and-configure-ssl-certification.html#troubleshooting

2.  Disabling the setting in Admin Panel > Stores > Store configuration > SSL enabled ... Please make sure this setting is disabled

3.  Changing the Startup.cs file as explained in this thread in the nopCommerce project: https://docs.microsoft.com/en-us/aspnet/core/host-and-deploy/proxy-load-balancer?view=aspnetcore-5.0#other-proxy-server-and-load-balancer-scenarios
2 года назад
Hi All,

I have the same problem with 4.40 for foxnet stripe plugin. What is the right nginx config to use SSL between nginx and dotnet. I got the error  "StripePaymentSettings CreateWebHook message=Invalid URL: http://example.com/plugins/stripehostedcheckout/webhook/. URLs in livemode must begin with "https://""
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.