-
-
Notifications
You must be signed in to change notification settings - Fork 11.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
[Bug] 数据库版本无法认证,跳转 api/auth/error
#5437
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
I found some similar discussions that might be relevant to your issue:
For your specific problem, ensure that the To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
@dosu 我要如何在域名发布模式下,配置casdoor的跨域访问呢? |
要在域名发布模式下配置 Casdoor 的跨域访问,您需要确保 CORS 设置允许来自您的 Lobe Chat 应用程序的请求。以下是配置步骤:
确保所有相关的域名和 URL 在 Casdoor 和 Lobe Chat 的配置中一致,并且 CORS 设置正确应用。这样可以避免跨域请求被阻止的问题[1]. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
提供一下控制台报错 |
Provide console error report |
问题一 模型无法选择 会自动变为默认现在还发现一个问题就是: root@C20250112111214:~/lobe-chat-db# docker logs -f lobe-postgres
PostgreSQL Database directory appears to contain a database; Skipping initialization
2025-01-14 13:13:09.098 UTC [1] LOG: starting PostgreSQL 16.4 (Debian 16.4-1.pgdg120+2) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14) 12.2.0, 64-bit
2025-01-14 13:13:09.099 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432
2025-01-14 13:13:09.099 UTC [1] LOG: listening on IPv6 address "::", port 5432
2025-01-14 13:13:09.102 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2025-01-14 13:13:09.112 UTC [29] LOG: database system was shut down at 2025-01-14 13:13:07 UTC
2025-01-14 13:13:09.128 UTC [1] LOG: database system is ready to accept connections
2025-01-14 13:18:09.206 UTC [27] LOG: checkpoint starting: time
2025-01-14 13:18:09.215 UTC [27] LOG: checkpoint complete: wrote 2 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.003 s, sync=0.001 s, total=0.009 s; sync files=3, longest=0.001 s, average=0.001 s; distance=0 kB, estimate=0 kB; lsn=0/2849B50, redo lsn=0/2849B18
2025-01-14 13:28:09.414 UTC [27] LOG: checkpoint starting: time
2025-01-14 13:28:14.274 UTC [27] LOG: checkpoint complete: wrote 49 buffers (0.3%); 0 WAL file(s) added, 0 removed, 0 recycled; write=4.842 s, sync=0.009 s, total=4.860 s; sync files=43, longest=0.005 s, average=0.001 s; distance=122 kB, estimate=122 kB; lsn=0/2868500, redo lsn=0/28684C8
2025-01-14 13:33:09.325 UTC [27] LOG: checkpoint starting: time
2025-01-14 13:33:16.281 UTC [27] LOG: checkpoint complete: wrote 72 buffers (0.4%); 0 WAL file(s) added, 0 removed, 0 recycled; write=6.936 s, sync=0.005 s, total=6.956 s; sync files=53, longest=0.002 s, average=0.001 s; distance=191 kB, estimate=191 kB; lsn=0/28984F8, redo lsn=0/28984C0
2025-01-14 13:38:09.378 UTC [27] LOG: checkpoint starting: time
2025-01-14 13:38:09.492 UTC [27] LOG: checkpoint complete: wrote 2 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.103 s, sync=0.003 s, total=0.115 s; sync files=2, longest=0.002 s, average=0.002 s; distance=5 kB, estimate=173 kB; lsn=0/2899978, redo lsn=0/2899940
2025-01-14 13:53:09.702 UTC [27] LOG: checkpoint starting: time
2025-01-14 13:53:10.020 UTC [27] LOG: checkpoint complete: wrote 4 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.304 s, sync=0.004 s, total=0.319 s; sync files=4, longest=0.002 s, average=0.001 s; distance=2 kB, estimate=156 kB; lsn=0/289A350, redo lsn=0/289A318
2025-01-14 13:58:09.118 UTC [27] LOG: checkpoint starting: time
2025-01-14 13:58:09.432 UTC [27] LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.303 s, sync=0.003 s, total=0.315 s; sync files=3, longest=0.002 s, average=0.001 s; distance=7 kB, estimate=141 kB; lsn=0/289C028, redo lsn=0/289BFD8
2025-01-14 14:03:09.515 UTC [27] LOG: checkpoint starting: time
2025-01-14 14:03:09.929 UTC [27] LOG: checkpoint complete: wrote 5 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.405 s, sync=0.003 s, total=0.414 s; sync files=4, longest=0.002 s, average=0.001 s; distance=4 kB, estimate=127 kB; lsn=0/289D340, redo lsn=0/289D308
2025-01-14 14:08:10.026 UTC [27] LOG: checkpoint starting: time
2025-01-14 14:08:11.754 UTC [27] LOG: checkpoint complete: wrote 18 buffers (0.1%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.717 s, sync=0.003 s, total=1.729 s; sync files=17, longest=0.002 s, average=0.001 s; distance=16 kB, estimate=116 kB; lsn=0/28A1670, redo lsn=0/28A1638
^Ccontext canceled 问题二 给出lobe-chat的日志lobe-chat的输出日志如下 root@C20250112111214:~/lobe-chat-db# docker logs -f lobe-chat
?? DNS Server: [ '127.0.0.11' ]
-------------------------------------
[Database] Start to migration...
? database migration pass.
-------------------------------------
▲ Next.js 15.1.4
- Local: http://localhost:3210
- Network: http://0.0.0.0:3210
? Starting...
? Ready in 234ms
{
allowDangerousEmailAccountLinking: true,
clientId: undefined,
clientSecret: undefined,
platformType: 'WebsiteApp',
profile: [Function: profile]
}
(node:28) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
ReferenceError: Cannot access 'm' before initialization
at Object.y (.next/server/chunks/73066.js:257:19183)
at <unknown> (.next/server/chunks/73066.js:257:23459)
at <unknown> (.next/server/chunks/2279.js:159:1345)
at o (.next/server/chunks/2279.js:159:1740)
at s (.next/server/chunks/2279.js:159:1766)
at d (.next/server/chunks/2279.js:159:1943)
at <unknown> (.next/server/chunks/73066.js:257:23405)
at t.a (.next/server/webpack-runtime.js:1:989)
at 955225 (.next/server/chunks/73066.js:257:23158)
at t (.next/server/webpack-runtime.js:1:143)
? unhandledRejection: ReferenceError: Cannot access 'm' before initialization
at Object.y (.next/server/chunks/73066.js:257:19183)
at <unknown> (.next/server/chunks/73066.js:257:23459)
at <unknown> (.next/server/chunks/2279.js:159:1345)
at o (.next/server/chunks/2279.js:159:1740)
at s (.next/server/chunks/2279.js:159:1766)
at d (.next/server/chunks/2279.js:159:1943)
at <unknown> (.next/server/chunks/73066.js:257:23405)
at t.a (.next/server/webpack-runtime.js:1:989)
at 955225 (.next/server/chunks/73066.js:257:23158)
at t (.next/server/webpack-runtime.js:1:143)
{
allowDangerousEmailAccountLinking: true,
clientId: undefined,
clientSecret: undefined,
platformType: 'WebsiteApp',
profile: [Function: profile]
}
? ReferenceError: Cannot access 'm' before initialization
at Object.y (.next/server/chunks/73066.js:257:19183)
at <unknown> (.next/server/chunks/73066.js:257:23459)
at <unknown> (.next/server/chunks/2279.js:159:1345)
at o (.next/server/chunks/2279.js:159:1740)
at s (.next/server/chunks/2279.js:159:1766)
at d (.next/server/chunks/2279.js:159:1943)
at <unknown> (.next/server/chunks/73066.js:257:23405)
at t.a (.next/server/webpack-runtime.js:1:989)
at 955225 (.next/server/chunks/73066.js:257:23158)
at t (.next/server/webpack-runtime.js:1:143) {
digest: '1785904733'
}
[auth][error] MissingCSRF: CSRF token was missing during an action signin. Read more at https://errors.authjs.dev#missingcsrf
at tH (/app/.next/server/chunks/18300.js:1:42255)
at i5 (/app/.next/server/chunks/18300.js:368:52432)
at async i3 (/app/.next/server/chunks/18300.js:368:56596)
at async tr.do (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:17558)
at async tr.handle (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:22188)
at async doRender (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/server/base-server.js:1452:42)
at async responseGenerator (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/server/base-server.js:1822:28)
at async NextNodeServer.renderToResponseWithComponentsImpl (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/server/base-server.js:1832:28)
at async NextNodeServer.renderPageComponent (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/server/base-server.js:2259:24)
at async NextNodeServer.renderToResponseImpl (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/server/base-server.js:2297:32)
? ReferenceError: Cannot access 'm' before initialization
at Object.y (.next/server/chunks/73066.js:257:19183)
at <unknown> (.next/server/chunks/73066.js:257:23459)
at <unknown> (.next/server/chunks/2279.js:159:1345)
at o (.next/server/chunks/2279.js:159:1740)
at s (.next/server/chunks/2279.js:159:1766)
at d (.next/server/chunks/2279.js:159:1943)
at <unknown> (.next/server/chunks/73066.js:257:23405)
at t.a (.next/server/webpack-runtime.js:1:989)
at 955225 (.next/server/chunks/73066.js:257:23158)
at t (.next/server/webpack-runtime.js:1:143) {
digest: '1785904733'
}
? ReferenceError: Cannot access 'm' before initialization
at Object.y (.next/server/chunks/73066.js:257:19183)
at <unknown> (.next/server/chunks/73066.js:257:23459)
at <unknown> (.next/server/chunks/2279.js:159:1345)
at o (.next/server/chunks/2279.js:159:1740)
at s (.next/server/chunks/2279.js:159:1766)
at d (.next/server/chunks/2279.js:159:1943)
at <unknown> (.next/server/chunks/73066.js:257:23405)
at t.a (.next/server/webpack-runtime.js:1:989)
at 955225 (.next/server/chunks/73066.js:257:23158)
at t (.next/server/webpack-runtime.js:1:143) {
digest: '1785904733'
}
[auth][error] MissingCSRF: CSRF token was missing during an action signin. Read more at https://errors.authjs.dev#missingcsrf
at tH (/app/.next/server/chunks/18300.js:1:42255)
at i5 (/app/.next/server/chunks/18300.js:368:52432)
at async i3 (/app/.next/server/chunks/18300.js:368:56596)
at async tr.do (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:17558)
at async tr.handle (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:22188)
at async doRender (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/server/base-server.js:1452:42)
at async responseGenerator (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/server/base-server.js:1822:28)
at async NextNodeServer.renderToResponseWithComponentsImpl (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/server/base-server.js:1832:28)
at async NextNodeServer.renderPageComponent (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/server/base-server.js:2259:24)
at async NextNodeServer.renderToResponseImpl (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_aa190866c08e6c33b25c334e88819b79/node_modules/next/dist/server/base-server.js:2297:32)
? ReferenceError: Cannot access 'm' before initialization
at Object.y (.next/server/chunks/73066.js:257:19183)
at <unknown> (.next/server/chunks/73066.js:257:23459)
at <unknown> (.next/server/chunks/2279.js:159:1345)
at o (.next/server/chunks/2279.js:159:1740)
at s (.next/server/chunks/2279.js:159:1766)
at d (.next/server/chunks/2279.js:159:1943)
at <unknown> (.next/server/chunks/73066.js:257:23405)
at t.a (.next/server/webpack-runtime.js:1:989)
at 955225 (.next/server/chunks/73066.js:257:23158)
at t (.next/server/webpack-runtime.js:1:143) {
digest: '1785904733'
}
? ReferenceError: Cannot access 'm' before initialization
at Object.y (.next/server/chunks/73066.js:257:19183)
at <unknown> (.next/server/chunks/73066.js:257:23459)
at <unknown> (.next/server/chunks/2279.js:159:1345)
at o (.next/server/chunks/2279.js:159:1740)
at s (.next/server/chunks/2279.js:159:1766)
at d (.next/server/chunks/2279.js:159:1943)
at <unknown> (.next/server/chunks/73066.js:257:23405)
at t.a (.next/server/webpack-runtime.js:1:989)
at 955225 (.next/server/chunks/73066.js:257:23158)
at t (.next/server/webpack-runtime.js:1:143) {
digest: '1785904733'
}
Route: [openai] InvalidProviderAPIKey: { error: undefined, errorType: 'InvalidProviderAPIKey' }
Route: [openai] InvalidProviderAPIKey: { error: undefined, errorType: 'InvalidProviderAPIKey' }
^Ccontext canceled |
在我进行登录时,捕获到错误输出为。 root@C202501111214:~/lobe-chat-db# docker logs -f lobe-chat
?? DNS Server: [ '127.0.0.11' ]
-------------------------------------
[Database] Start to migration...
? database migration pass.
-------------------------------------
▲ Next.js 15.1.4
- Local: http://localhost:3210
- Network: http://0.0.0.0:3210
? Starting...
? Ready in 261ms
{
allowDangerousEmailAccountLinking: true,
clientId: undefined,
clientSecret: undefined,
platformType: 'WebsiteApp',
profile: [Function: profile]
}
(node:29) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
{
allowDangerousEmailAccountLinking: true,
clientId: undefined,
clientSecret: undefined,
platformType: 'WebsiteApp',
profile: [Function: profile]
}
[NextAuth] Error: { cause: null, message: 'Unknown error type.', name: 'NextAuth Error' } 我尝试过很多次删除文件并重新下载配置文件进行配置,但还是无法解决 |
先尝试更新到版本 |
Try updating to version |
已经更新到1.45.10了 错误日志[NextAuth] Error: { cause: null, message: 'Unknown error type.', name: 'NextAuth Error' }
[auth][error] CallbackRouteError: Read more at https://errors.authjs.dev#callbackrouteerror
[auth][cause]: r3: response parameter "iss" (issuer) missing
at r6 (/app/.next/server/chunks/80382.js:368:4893)
at /app/.next/server/chunks/80382.js:368:32166
at ij (/app/.next/server/chunks/80382.js:368:32956)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async iV (/app/.next/server/chunks/80382.js:368:40333)
at async i5 (/app/.next/server/chunks/80382.js:368:51902)
at async i3 (/app/.next/server/chunks/80382.js:368:56596)
at async tr.do (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_ddaf53d3b53e2eb9f52b27236a461995/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:17558)
at async tr.handle (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_ddaf53d3b53e2eb9f52b27236a461995/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:22072)
at async doRender (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_ddaf53d3b53e2eb9f52b27236a461995/node_modules/next/dist/server/base-server.js:1452:42)
[auth][details]: {
"parameters": {},
"provider": "logto"
}
[NextAuth] Error: {
cause: 'Configuration',
message: 'Wrong configuration, make sure you have the correct environment variables set. Visit https://lobehub.com/docs/self-hosting/advanced/authentication for more details.',
name: 'NextAuth Error'
}
[auth][error] CallbackRouteError: Read more at https://errors.authjs.dev#callbackrouteerror
[auth][cause]: r3: response parameter "iss" (issuer) missing
at r6 (/app/.next/server/chunks/80382.js:368:4893)
at /app/.next/server/chunks/80382.js:368:32166
at ij (/app/.next/server/chunks/80382.js:368:32956)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async iV (/app/.next/server/chunks/80382.js:368:40333)
at async i5 (/app/.next/server/chunks/80382.js:368:51902)
at async i3 (/app/.next/server/chunks/80382.js:368:56596)
at async tr.do (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_ddaf53d3b53e2eb9f52b27236a461995/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:17558)
at async tr.handle (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_ddaf53d3b53e2eb9f52b27236a461995/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:22072)
at async doRender (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_ddaf53d3b53e2eb9f52b27236a461995/node_modules/next/dist/server/base-server.js:1452:42)
[auth][details]: {
"parameters": {},
"provider": "logto"
}
[NextAuth] Error: {
cause: 'Configuration',
message: 'Wrong configuration, make sure you have the correct environment variables set. Visit https://lobehub.com/docs/self-hosting/advanced/authentication for more details.',
name: 'NextAuth Error'
} 手动访问重定向URL似乎提供给Logto的参数是空的 [NextAuth] Error: { cause: null, message: 'Unknown error type.', name: 'NextAuth Error' }
[auth][error] CallbackRouteError: Read more at https://errors.authjs.dev#callbackrouteerror
[auth][cause]: r3: response parameter "iss" (issuer) missing
at r6 (/app/.next/server/chunks/80382.js:368:4893)
at /app/.next/server/chunks/80382.js:368:32166
at ij (/app/.next/server/chunks/80382.js:368:32956)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async iV (/app/.next/server/chunks/80382.js:368:40333)
at async i5 (/app/.next/server/chunks/80382.js:368:51902)
at async i3 (/app/.next/server/chunks/80382.js:368:56596)
at async tr.do (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_ddaf53d3b53e2eb9f52b27236a461995/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:17558)
at async tr.handle (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_ddaf53d3b53e2eb9f52b27236a461995/node_modules/next/dist/compiled/next-server/app-route.runtime.prod.js:18:22072)
at async doRender (/app/node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@[email protected]_react-d_ddaf53d3b53e2eb9f52b27236a461995/node_modules/next/dist/server/base-server.js:1452:42)
[auth][details]: {
"parameters": {},
"provider": "logto"
}
[NextAuth] Error: {
cause: 'Configuration',
message: 'Wrong configuration, make sure you have the correct environment variables set. Visit https://lobehub.com/docs/self-hosting/advanced/authentication for more details.',
name: 'NextAuth Error'
} 配置文件 logto:
image: svhd/logto:1.18
container_name: lobe-logto
ports:
- '3001:3001'
- '3002:3002'
depends_on:
postgresql:
condition: service_healthy
environment:
- 'TRUST_PROXY_HEADER=1'
- 'DB_URL=postgresql://postgres:uWNZugjBqixf8dxC@postgresql:5432/logto'
- 'ENDPOINT=https://lobe-auth-api.joe.top'
- 'ADMIN_ENDPOINT=https://lobe-auth-ui.joe.top'
entrypoint: ['sh', '-c', 'npm run cli db seed -- --swe && npm start'] |
尝试修改一下Nginx的反代配置;
casdoor
logto相关 可以去看看它的文档,它的反代还有点其他要求。 |
如果你通过宝塔之类的面板申请ssl,请记得加上以下的nginx反代配置 location /.well-known/openid-configuration {
proxy_pass http://localhost:8000; # 转发到 localhost:8000
proxy_set_header Host $host; # 保留原始主机头
proxy_set_header X-Real-IP $remote_addr; # 保留客户端真实IP
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; # 保留转发的IP
proxy_set_header X-Forwarded-Proto $scheme; # 保留请求协议
} |
|
请问这上述的两个是分别写入 |
是的。 |
好的,谢谢!我这就来测试一下 |
OK, thanks! I'm going to test it right now |
还是不行呢。 |
Still not working. |
|
Still doesn't work, this is a very complicated problem. I tried rolling back versions of csadoor and logto, but the problem remains. |
I set up port rewriting before so that the problem of too many redirects wouldn't occur, but I didn't use the Pagoda panel. |
这样子看的话,似乎是宝塔面板的Nginx配置的问题,我用的一键操作的方式,直接在面板中增加反代设置,导致了这么多问题。 我是可以通过访问casdoor的域名进入casdoor并且进行配置的。但是从Lobe发起鉴权认证跳转到casdor的时候,就会出现错误。不知是哪一步出现的问题。
|
@Jacob-zh
|
@JoeChen2me 是这里。你可以先使用宝塔申请ssl证书,cloudflare 解析时不使用 proxy 。 |
@JoeChen2me is here. You can first use Pagoda to apply for an SSL certificate. Cloudflare does not use proxy when parsing. |
@JoeChen2me 我提供的配置是给casdoor的,你可以将该配置放到负责反向代理casdoor的nginx配置中。 |
@JoeChen2me The configuration I provided is for casdoor. You can put this configuration into the nginx configuration responsible for the reverse proxy casdoor. |
好的。我试试 |
OK I'll try |
我现在改用1panel来做面板管理
其返回码是404。 |
I now switch to 1panel for panel management
Its return code is 404. |
试试用dokploy?不过我之前没用这些,用的NPM面板设置的反代 |
Try using dokploy? But I haven't used these before, I used the reverse version of the NPM panel settings. |
放弃了。我等文档更新再重新部署一遍看看。 |
gave up. I'll wait for the documentation to be updated and then redeploy it to take a look. |
📦 Environment
Docker
📌 Version
v1.45.8
💻 Operating System
Ubuntu
🌐 Browser
Edge
🐛 Bug Description
使用域名方式部署运行 数据库版本时,经过以下尝试,使用
以上三种方式都会出现错误,点击登录/注册时,直接跳转到
https://lobe.Mydomain.com/api/auth/error
在配置过程中,均遵循官方教程文档进行配置 教程文档。下图以casdoor的配置为例子:
均已按照教程进行了配置。
但这三种方式都会出现上述登录/注册失败的情况。
Nginx的 反代已经设置完毕,认证端和S3端和主页面都可以进行通过域名访问
详细的配置文件在下方放出。
请问这是什么原因呢?
.env
文件.docker compose .yml
文件📷 Recurrence Steps
配置Next-AUTH的相关环境变量
进入页面,点击
登录/注册
会跳转到
/api/auth/error
以上情况对三种验证服务均有效
🚦 Expected Behavior
点击
登录/注册
,会跳转到对应的认证接口📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: