(Keystone 5) How to change the /signin?from= redirect for adminUI #9120
-
I have nextjs (port 3000) and keystone js (port 3001) running in a docker container, with a separate docker container running nginx as a reverse proxy. When already signed in, navigating to /admin shows the adminUI as expected. Without login credentials, keystone navigates to /signin?from=2% instead of /admin/signin. I have tried everything, looked through every piece of documentation, googled every permutation I can possibly think of and I'm so frustrated I'm about to throw myself off a bridge To Reproduce
index.ts:
keystone.ts:
nginx.conf:
Expected behaviourchanging adminPath variable should change the /signin redirect to /admin/signin (or whatever) so developers trying to use reverse proxies don't kill themselves out of frustration ScreenshotsFor some reason any attempt to compensate for this issue results in redirect hell: System information
Additional contextHow am I the only one who has had this issue? I can't find anything about it anywhere and I find it hard to believe that this is an unusual use case |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Fixed it. Had to do some janky configuration with nginx, but managed to create a workaround for this issue. Closing |
Beta Was this translation helpful? Give feedback.
-
Hello can you provide some details on your solution? It would help a lot |
Beta Was this translation helpful? Give feedback.
Fixed it. Had to do some janky configuration with nginx, but managed to create a workaround for this issue. Closing