WithCandour / statamic-aardvark-seo

Candour's SEO addon for Statamic
https://statamic.com/marketplace/addons/aardvark-seo
11 stars 18 forks source link

Serve sitemap pages over https #121

Open AndrewHaine opened 2 years ago

AndrewHaine commented 2 years ago

this may be a separate issue but we're also having problems with sitemap erroring in production due to it being rendered in http rather than https. Setting the APP_URL to https does not help, nor does enforcing https in the AppServiceProvider.

Looking into this further, I've found that the addon serves via http on servers behind load balancers. Are you able to add some configuration that forces sitemap.xml to serve https? At the moment it is only the aardvark seo tools which are being served in http

Originally posted by @AdD959 in https://github.com/WithCandour/statamic-aardvark-seo/issues/113#issuecomment-1069085999

krsilas commented 5 months ago

I'm currently struggling with this as well. Is there any way to fix it?

AdD959 commented 1 month ago

I ran into this issue again 2 years later with another site. Any chance of this being addressed?

krsilas commented 1 month ago

@AdD959 For me the issue was actually not really related to aardvark-seo. I'm running the laravel app behind a proxy and I had to configure a trusted proxy (https://laravel.com/docs/10.x/requests#configuring-trusted-proxies)

AdD959 commented 1 month ago

@krsilas you're right and I believe this was the solution I also found at the time, thanks for that! Good to have a reference here if anyone else stumbles upon the issue.