-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
No redirect after log in #1234
Comments
I'm also using Traefik v2 and had the same issue: login is succesful but the browser does not redirect anywhere. In my browser's console, I could see the browser was preventing a form action to a http resource from a page loaded by https. This was only in my browser's console log; there was no error to see in server logs. The solution for me was to add OVERWRITEHOST=example.com and OVERWRITEPROTOCOL=https environment variables to the nextcloud section of docker-compose.yml and start over with a clean volume so that nextcloud would configure itself with these variables. The environment variables end up in nextcloud's config.php as 'overwritehost' and 'overwriteprotocol', but when I tried to add these values to config.php without starting over, I would get 500 internal server errors. |
These two additions solved the issue, Thank you! |
docker exec -u www-data -i nextcloud php occ config:system:set overwriteprotocol --value https
docker exec -u www-data -i nextcloud php occ config:system:set overwritehost --value $mydomain worked for me with without resetting the volume. |
Can somebody explain why this is necessary? Can this be fixed in the reverse-proxy settings? (I'm using caddy.) |
Still locked in the login loop ! |
I am also locked in login loop. NC: 22.2 |
After adding these at the end of the docker compose file, It worked for me thanks. |
I dot this and resolve my issue , thanks for yuur explain my friend . |
After filling in the login details and pushing log in, it will get stuck in a "logging in" state, network tab shows a cancelled request to /login
On the server side the nextcloud container reports a POST request and nothing else:
nextcloud | 172.20.0.1 - - [02/Sep/2020:17:31:41 +0000] "POST /login HTTP/1.1" 303 1130 "-" "browser agent list"
After a page refresh on the /login will take successfully to the logged in page of /apps/files/
The container is running behind Traefik v2 reverse proxy
Relevant docker compose section:
Relevant traefik dynamic config:
OS: Centos 8
latest docker and docker compose
The text was updated successfully, but these errors were encountered: