handesk icon indicating copy to clipboard operation
handesk copied to clipboard

Handesk behind haproxy and SSL

Open antton opened this issue 7 years ago • 5 comments

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

antton avatar Oct 19 '17 10:10 antton

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

BadChoice avatar Oct 19 '17 10:10 BadChoice

Can you try this?

https://stackoverflow.com/questions/34378122/load-blade-assets-with-https-in-laravel

BadChoice avatar Oct 19 '17 10:10 BadChoice

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!

antton avatar Oct 19 '17 10:10 antton

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/

deleugpn avatar Nov 17 '17 23:11 deleugpn

@antton any news on this issue? did it finally work for you?

BadChoice avatar Mar 31 '18 19:03 BadChoice