TheDMSGroup / mautic-eb

Mautic + Elastic Beanstalk = Scalable marketing automation
https://www.mautic.org
GNU General Public License v3.0
104 stars 27 forks source link

Prevent https redirection #84

Closed zero-one-devteam closed 5 years ago

zero-one-devteam commented 5 years ago

Question

Description:

When running on AWS with Cloudfront, I would like the EB Loadbalancer to only listen to http. It seems that the nodes automatically redirect http to https so that the health checks fail. Is there any option to prevent the redirection on the nodes (I did not found any config file, mayba Mautic is doing this?)

zero-one-devteam commented 5 years ago

Ah, I got it. If you set APP_URL to https://something there will always be a redirect. So, best practice in my case would be to set it only to the hostname (without any protocol), right?

heathdutton commented 5 years ago

I'd recommend enabling https with your load balancer config, and/or adding Cloudflare in front of your app for flexible SSL. You could also set the health check to hit a favicon.ico because health check in EB is usually for testing apache is functioning more than testing your app is up and ready.

zero-one-devteam commented 5 years ago

Why would you prefer Cloudflare and not use Cloudfront? With Cloudfront one has a seamlessly integrated solution (custom ssl included) ...

heathdutton commented 5 years ago

Cloudflare has a wider feature set and we've been using its features (firewall/rate-limiting/caching/dns/etc) company-wide for years for apps both in and out of AWS.

Have nothing against Cloudfront, except that we aren't currently using it for much.