HTTPS problems on Linux with nginx

Wednesday, April 24, 2024 5:45:03 PM
  • Posted: Sunday, April 4, 2021 7:19 PM
  • 4
I instantiated grandnode on a droplet from the Digital Ocean marketplace and then have attempted to to follow all the rest of the installation instructions. I am really close to getting things working, but not quite there. I am seeing several issues and some have been mentioned elsewhere here in the forum but no actual solutions. I suspect the grandnode installation instructions for nginx are not complete. I've got a web domain and set up a server block for nginx in the /etc/nginx/sites-available directory. I ran certbot and got certificates installed, plus the paths to them were added in the server block.

I can only get to the admin panel using the IP address, and not through the domain name.
I can get to the actual store page through the domain name and a lot of things show up, BUT;
   None of the images appear. On inspection the paths seem to be correct but I get a 404 on all of them.
   The favicon doesn't load in the store. But it does load in the admin panel.

In System Information I see;
Http request scheme http
Http scheme is https False

I realize this is bad but nothing I've done so far seems to fix it.

in /var/webapps/grandnode/App_Data/appsettings.json
"UseForwardedHeaders": true

In the nginx server block I had to add this or nothing was found on a page load;
root /var/webapps/grandnode;

I also had to add the server names.

In /var/log/nginx/error.log I see these errors but I don't think they are the problem?
2021/04/04 18:53:08 [warn] 2464#2464: conflicting server name "" on 0.0.0.0:80, ignored
2021/04/04 18:55:11 [warn] 2536#2536: could not build optimal proxy_headers_hash, you should increase either proxy_headers_hash_max_size: 512 or proxy_headers_hash_bucket_size: 64; ignoring proxy_headers_hash_bucket_size
0
  • Posted: Tuesday, April 6, 2021 7:29 AM
  • 953
Well, Digitalocean instruction doesn't contain the SSL configuration. After successful installation on server, you would need to change the Use Forwarded Headers in appsettings.json from false to true, then enable SSL in the Admin panel -> Configuration -> Stores. by Enabling proper checkbox and adding the secure URL.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Tuesday, April 6, 2021 2:20 PM
  • 4
Thanks for the suggestions, but I had searched the forum here for other posts about this problem and have already done those things.

SSl is enabled in the store panel and;
"UseForwardedHeaders": true,

I also read the documentation and have added the /etc/nginx/proxy.conf file. Oddly, when I run the nginx test I see an error on the file;

$ sudo nginx -t
nginx: [emerg] "client_max_body_size" directive is duplicate in /etc/nginx/conf.d/proxy.conf:6
nginx: configuration file /etc/nginx/nginx.conf test failed

Which is odd, because I am not seeing client_max_body_size anywhere else in the /etc/nginx directory. I have to comment out that line and all the subsequent lines, they also show as duplicates.

Any other suggestions? Obviously HTTPS is working to some extent and the certificate is valid, because I can get to the store itself using a https:// path. But none of the thumbnail images will load (though the files are present) and "Http scheme is https False" in the System Information panel. What is being looked at in the code to determine the Http scheme?

0
  • Posted: Thursday, April 8, 2021 12:38 PM
  • 953
Well, if your store "System information" throws that Is https - false and https scheme - HTTP, it means that something is wrong with the SSL configuration on server, as I'm not a server administrator, I'm not able to help you, sorry. From my end, I can confirm that the simplest config for reverse proxy and SSL works fine.
Best regards,
Patryk

GrandNode Team
0
  • Posted: Thursday, April 8, 2021 2:16 PM
  • 4
'Something is wrong' is not very helpful. I've tried everything I can think of. Is there some technical person on the team that can offer suggestions to debug this? Instantiate a droplet and go through the process, there is more to it than what is described in the instructions.
0
  • Posted: Monday, April 12, 2021 6:22 AM
  • 33
William wrote:
Is there some technical person on the team that can offer suggestions to debug this?

You may always ask for support from our team. Please have a look at support service.
Best regards,
Tomasz

GrandNode Team
0
  • Posted: Monday, April 12, 2021 3:33 PM
  • 4
With all due respect, I think I'll try one of the other open source store implementations and see if their installation works.
1
back to top
Filters