-
Notifications
You must be signed in to change notification settings - Fork 43
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
secret missing in docker image. #31
Comments
Hi guys, With the new version you need to run the Docker image with environment variables as follows:
Inside the .env file you need the following variables for the single user setup:
For the multi-user setup:
If you use the single-user setup, it uses the ADMIN_EMAIL and ADMIN_PASSWORD for login. Otherwise, it uses password-less authentication. Does it solves your issue? |
Thanks for that. But then, same result, I cannot login, the page stays blocked on Sign In |
Could you try this exact command? It's the one I use, and it works for me. It''s for the single user setup.
Then you should be able to log in with:
|
It works with this exact command. I can login, thanks! |
I'm glad it works for you now @thomasWos :) |
yeah it works! still have no chat output, but that's another issue. |
the new docker image produce this error on my side:
[next-auth][error][NO_SECRET]
https://next-auth.js.org/errors#no_secret
Warning: For production Image Optimization with Next.js, the optional 'sharp' package is strongly recommended. Run 'yarn add sharp', and Next.js will use it automatically for Image Optimization.
Read more: https://nextjs.org/docs/messages/sharp-missing-in-production
[next-auth][error][NO_SECRET]
https://next-auth.js.org/errors#no_secret Please define a
secret
in production. MissingSecret [MissingSecretError]: Please define asecret
in production.at assertConfig (/app/node_modules/next-auth/core/lib/assert.js:42:12)
at AuthHandler (/app/node_modules/next-auth/core/index.js:70:52)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async NextAuthHandler (/app/node_modules/next-auth/next/index.js:24:19)
at async /app/node_modules/next-auth/next/index.js:60:32
at async Object.apiResolver (/app/node_modules/next/dist/server/api-utils/node.js:372:9)
at async NextNodeServer.runApi (/app/node_modules/next/dist/server/next-server.js:514:9)
at async Object.fn (/app/node_modules/next/dist/server/next-server.js:828:35)
at async Router.execute (/app/node_modules/next/dist/server/router.js:243:32)
at async NextNodeServer.runImpl (/app/node_modules/next/dist/server/base-server.js:432:29) {
code: 'NO_SECRET'
}
[next-auth][error][NO_SECRET]
https://next-auth.js.org/errors#no_secret
[next-auth][error][NO_SECRET]
https://next-auth.js.org/errors#no_secret
[next-auth][error][NO_SECRET]
https://next-auth.js.org/errors#no_secret
[next-auth][error][NO_SECRET]
https://next-auth.js.org/errors#no_secret Please define a
secret
in production. MissingSecret [MissingSecretError]: Please define asecret
in production.The text was updated successfully, but these errors were encountered: