-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Keystone don't shows Sign In problem in production environment (Sign In works only for https) #2769
Comments
Hey @pahaz can you have a read through this and see if it helps solve your problem? Depending on your hosting provider, it might be enough to set the https://gist.github.com/molomby/6fa22c165e0025f0f83d55195f3c6e37 |
@jesstelford I just try to run it locally without any proxy. |
Steps to reproduce:
|
My understanding from #2729 is that keystonejs can only be used if you have access direct access to the server software and its configuration. |
Ou. I understand my problem. I added SSL cert for localhost by command keystone/packages/keystone/bin/utils.js Lines 78 to 85 in 78193f9
by this hack (just for test purposes 😁, don't do such staff in production):
And after that, the Sign In form started working fine in https://localhost:3000/ . In my opinion, it's quite counterintuitive. Keystone should write some warnings about such cases!
Thanks, @3lijah and @jesstelford ! |
I think server customization like in |
Hmm, curious! I've never had sign-in problems when running locally on http. We do have custom server options, and they were in fact inspired by Next.js! https://www.keystonejs.com/guides/custom-server |
Is there any further action required in this issue? @pahaz @jesstelford? We've spent a lot of time trying to discover all the issues documented in #2729 I think from here the best way forward is to start planning alternative authentication methods for the admin UI. Closing this now and would welcome any new issues focused on features that improve sign-in\authentication. |
Bug report
Describe the bug
If I use
yarn dev
:Then I use
yarn build && yarn start
with the same credentials:To Reproduce
You can reproduce it with demo projects #2761 or with
yarn create keystone-app my-app
.System information
Additional context
Is the
keystonejs
ready for production? Do you have any production project based on the Keystonejs?The text was updated successfully, but these errors were encountered: