handesk
handesk copied to clipboard
Handesk behind haproxy and SSL
Hi,
I'm trying to make it work behind haproxy, it works if I don't try to make anything strange with the SSL, but when I try to configure the SSL I get mixed content error:
I try to change the assets to secure_asset but nothing, it takes my http url for the css all the time even in my .env I have https:// for the APP_URL parameter.
Maybe someone already look around something similar. Cheers
Hi,
asset
should automatically use https if the page is in https.. I don't have a ssl setup to do further testing here, however i'll check the web and see if it is a common problem on how to fix it
Can you try this?
https://stackoverflow.com/questions/34378122/load-blade-assets-with-https-in-laravel
I did all of them yesterday but nothing. I'm going to put in a server without haproxy or try to passthough the ssl from the HA.
I'll let you know!
using asset
, Laravel will automatically identify whether it's a secure request or not and setup https or http accordingly. That is also valid for HTTP requests that carry _$SERVER['HTTPS']
as on
. I faced this problem using AWS with a Load Balancer and the solution I found is here: https://aws.amazon.com/premiumsupport/knowledge-center/redirect-http-https-elb/
@antton any news on this issue? did it finally work for you?