Have next js (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
Run a Next.js app and Keystone.js app in a docker container, with a second container running nginx and proxying :80 -> :3000 and :80/admin -> :3001
Try to sign in and enjoy not being able to ever see a login screen because of an obtuse and unchangeable redirect uri
changing 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
Screenshots
For some reason any attempt to compensate for this issue results in redirect hell:
System information
OS: Arch Linux, but running in Docker container with Debian 9
Browser: Chrome, Brave
Additional context
How 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
Bug report
Describe the bug
Have next js (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
Run a Next.js app and Keystone.js app in a docker container, with a second container running nginx and proxying :80 -> :3000 and :80/admin -> :3001
Try to sign in and enjoy not being able to ever see a login screen because of an obtuse and unchangeable redirect uri
index.ts:
keystone.ts:
nginx.conf:
Expected behaviour
changing 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
Screenshots
For some reason any attempt to compensate for this issue results in redirect hell:
System information
Additional context
How 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