-
Notifications
You must be signed in to change notification settings - Fork 25
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
Failed to Login using docker-compose example #2
Comments
After looking into debugging, it appears I am authenticating successfully, as debug logs state when I set DEBUG_MODE = true. It appears to be a redirect-after-login issue. |
I believe this is only an issue if you follow the docker-compose example directly without using a reverse proxy. Using the sample docker-compose as-is, you must be accessing Cypht via an IP address and specified port. Not sure why, but I think that is where the problem lies. If you have some sort of reverse proxy setup (such as jwilder/nginx-proxy or traefik) so that you can access Cypht via a domain/subdomain, the problem disappears. At least, I think that is what gets around this issue. |
The problem is in cookies. After POST request Cypht responds and in one Set-Cookie header sets and then immediately deletes all hm_{id,login,session} cookies. So the next request there are no cookies at all. |
Is there a mode to run without a proxy, or somewhere I can debug further to resolve it? I'd be happy to PR this if I can get it working, but I'm lost on the actual root cause after several hours. |
I had changed the docker-compose.yml file to use an alternative host port, and also ran into this problem. When I changed it back to the default port 80, I was able to login. |
For me, setting CYPHT_DISABLE_ORIGIN_CHECK to 1 resolved this problem. |
Not sure what's up, but seeing no log messages about failure. When using the specified password, it returns to the login screen with no error.
I'm debugging this as well myself but wanted to put a note here.
The text was updated successfully, but these errors were encountered: