Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of the box, hitting the main endpoint with https:// redirects to http:// endpoints #14

Closed
ryanwalls opened this issue Oct 26, 2015 · 8 comments

Comments

@ryanwalls
Copy link

I've configured a separate load balancer to handle https://. But when trying to login and clicking any links in the UI, the app is specifying http:// endpoints. Since I've blocked port 80 access on my 3rd party load balancer, the app doesn't work other than the main page.

Is there a way to make the redirects/links relative so they don't specify http?

@djdefi
Copy link
Contributor

djdefi commented Oct 27, 2015

May need to add some sort of rewrite to force https://

My Cachet page seems to be behaving the same way, however my domain is HSTS preloaded so it forces https at the browser level.

What type of load balancer are you utilizing? Haproxy or something?

@ryanwalls
Copy link
Author

@djdefi I'm using an amazon ELB. So unfortunately, not much rewrite-ability.

@djdefi
Copy link
Contributor

djdefi commented Oct 28, 2015

It may be something that can be added to the docker image / nginx config there. I have seen some other docker images have a flag to specify when using HTTPS or something similar.

@joecohens
Copy link

@ryanwalls If you are using a load balancer probably you need configure you trustedproxies, you can do it on config/trustedproxies.php

@jessesanford
Copy link

Also expressing interest in this. It's pretty important to be able to use https in front of cachet.

@jbrooksuk
Copy link
Member

@jessesanford did the suggestion that @joecohens gave above help?

@djdefi
Copy link
Contributor

djdefi commented Mar 4, 2016

Master has been updated in #43 to utilize an external nginx container, which allows you to modify the nginx configuration. Hopefully this will help to get around this issue.

@djdefi
Copy link
Contributor

djdefi commented Apr 8, 2016

Closing this as nginx config is now external.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants