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
Demo page never allows you to login from CNAME URL #370
Comments
Nevermind. Fully redeployed and it worked. |
Nevermind. Fully redeployed and it worked. |
Nope. I lied. The problem occurs when you attempt to login via https://status.cachethq.io but if you login using the https://cachet.herokuapp.com it works fine. |
Does this has to be with the proxied domains ? Maybe we should add or change the default domain to status.cachethq.io on the configs. |
Perhaps... Let me reset the migrations. |
Nope, still doesn't work. |
I wonder if it's CloudFlare? |
I think CloudFlare it's disabled |
I happened to just disable it. |
Lol we would need to disable the force SSL on the subdomain if that's the problem. |
Cloudflare cannot be causing this. Don't disable forcing ssl. |
^ this |
Also, even if it was cloudflare, we'd need to still get it working. Other people way want to use cachet behind cloudflare. |
Yeah. I'm doing a test on heroku + cloudflare right now to try to find some fixes to this |
thx :) |
My thoughts on this:
|
Ahh yes. What have you configured the app url as @jbrooksuk? |
It needs to be set to "https://status.cachethq.io". |
It's just set as |
I think we might need to set it at an earlier point. That might be what's causing the issue. |
Like we do with the timezone and locale? |
@GrahamCampbell we are actually setting the |
Oh wow, that stuff does not belong in a filter. It belongs in the register method of a service provider. |
Yeah, I was playing with the idea earlier, but ran out of time :( |
Sorry my bad :(. @GrahamCampbell so we set a LoadConfigServiceProvider and move the filter code? |
Yeh, sounds like a plan. |
Perfect! |
Update on possible fixes: (Note: all of these were tested on heroku + cloudflare ssl) 1 the
|
@GrahamCampbell any idea on this? Is there a way to hook into |
There is a better way of doing this. See my cms again. :) |
https://github.com/fideloper/TrustedProxy I've used the cloudflare server ips as the default in my cms config there. :) |
@noahbass do you want to try it with the TrustedProxy package? |
TrustedProxy is a good one, I use in my projects. |
Just did a test again with https://github.com/fideloper/TrustedProxy. It didn't work. |
Are you using behid a nginx or cloudflare? |
It's a heroku + cloudflare setup |
Did you set cloudflare ips on white list? @GrahamCampbell posted one above. |
@pedrommone yes I did |
Okay. Now this is getting weird. Applying https://github.com/fideloper/TrustedProxy will fix the ssl issues on a *.herokuapp.com host for some reason, but not the cloudflare host. |
@noahbass let's get one problem fixed at a time. Now we know TrustedProxy is fixing half of it, let's do that. |
I've just pushed with the changes. |
Even with the TrustedProxy fix, I'm still unable to login at |
Unless we're doing something wrong on our end, then I guess this is an issue with fideloper/TrustedProxy. |
Side note; we still need to fix the bloody unsecure forms. |
Any other ideas on this? I don't see why we have an issue with logins just because we're running on a different domain? |
Since we have no solution on this I replaced the |
Something is wrong with the demo site (I've just pushed the latest changes). After setup, if you logout and then back in again, it'll simply redirect you back to the login page without an error message.
https://status.cachethq.io/auth/login
The text was updated successfully, but these errors were encountered: