calcom / docker

The Docker configuration for Cal.com is an effort powered by people within the community. Cal.com, Inc. does not provide official support for Docker, but we will accept fixes and documentation. Use at your own risk.
MIT License
662 stars 344 forks source link

Redirect to localhost:3000 after login #214

Closed aantilao closed 1 year ago

aantilao commented 1 year ago

Hello, i was using docker instalation in production enviorment, but after I logged in, I redirected to localhost:3000. In my .env var i set NEXT_PUBLIC_WEBAPP_URL and NEXTAUTH_URL but still redirect to localhost.

The weird part is in docker logs, the replace-placeholder change the localhost to my url.

I tried change the docker version (2.5.4, 2.5.5, 2.5.9, and the latest), but nothing happens.

The migrations applied in my database and IO did nmot have any errors in my logs.

Does anyone else have this happen or know how to fix it?

krumware commented 1 year ago

I'm seeing some similar behavior, not with the redirects yet, but in general with browser caching. Can you try in incognito mode just to test?

aantilao commented 1 year ago

I tried in incognito and another explorers, but the error still continue, I read in another post and an option is invalidate cache, and I applied to my distribution, but nothing happens.

3rdgunner commented 1 year ago

Set NEXTAUTH_URL as local host:3000 that is how I have it on my setup and make sure you clear the cache of the browser

aantilao commented 1 year ago

Thanks @3rdgunner, this partially fixes it, every time I log in or log out it redirects me to localhost:3000, but if I log in to my defined url again, the credentials are stored and I can use calcom.

Also @krumware, I found this issue (https://github.com/calcom/cal.com/issues/5154) related to my problem in calcom without docker, I think probably is the Dockerfile and its installation.

krumware commented 1 year ago

We have also noticed this happening occasionally as a caching issue, after attempting login prior to updating the nextauth_url