lobehub / lobe-chat

🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / Azure / DeepSeek), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Vision/TTS) and plugin system. One-click FREE deployment of your private ChatGPT/ Claude application.
https://chat-preview.lobehub.com
Other
44.33k stars 9.94k forks source link

[Request] 兄弟们logto的问题实在太多了,除了logto,还有什么身份认证系统可以本地化部署嘛 #4006

Closed zhangleijun111 closed 3 weeks ago

zhangleijun111 commented 1 month ago

🥰 Feature Description

兄弟们logto的问题实在太多了,除了logto,还有什么身份认证系统可以本地化部署嘛

🧐 Proposed Solution

兄弟们logto的问题实在太多了,除了logto,还有什么身份认证系统可以本地化部署嘛

📝 Additional Information

兄弟们logto的问题实在太多了,除了logto,还有什么身份认证系统可以本地化部署嘛

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


🥰 Feature Description

Brothers, there are so many problems with logto. In addition to logto, is there any other identity authentication system that can be deployed locally?

🧐 Proposed Solution

Brothers, there are so many problems with logto. In addition to logto, is there any other identity authentication system that can be deployed locally?

📝 Additional Information

Brothers, there are too many problems with logto. In addition to logto, what other identity authentication system can be deployed locally?

lobehubbot commented 1 month ago

👀 @zhangleijun111

Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. Please make sure you have given us as much context as possible.\ 非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

Wilburn-hub commented 1 month ago

doker compose 没问题的

image
lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


docker compose no problem

arvinxx commented 1 month ago

等 casdoor 吧

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Wait for casdoor

zhangleijun111 commented 1 month ago

Doker compose 没问题的 image

我也是docker-compose但是创建应用就一直报错,我是内网部署,你能帮我看看嘛

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Doker compose is no problemimage

I also docker-compose, but I keep getting errors when creating an application. I deploy on the intranet, can you help me check it out?

Wilburn-hub commented 1 month ago

Doker compose 没问题的 image

我也是docker-compose但是创建应用就一直报错,我是内网部署,你能帮我看看嘛

你可以把dockerfile 和 env文件发出来一起排查问题

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Doker compose is no problemimage

I also docker-compose, but I keep getting errors when creating an application. I deploy on the intranet, can you help me check it out?

You can send the dockerfile and env files to troubleshoot the problem together

eagleye1115 commented 1 month ago

等 casdoor 吧

能不能支持keycloak

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Wait for casdoor

Can it support keycloak?

zhangleijun111 commented 1 month ago

Doker compose 没问题的image

我也是docker-compose但是创建应用就一直报错,我是内网部署,你能帮我看看嘛

你可以把dockerfile 和 env文件发出来一起排查问题

可以我发出来 docker-composer version: '3.8' services: postgresql: image: registry.us-west-1.aliyuncs.com/jg-images/pgvector:pg16 container_name: lobe-postgres ports:

volumes: data: driver: local s3_data: driver: local

env

APP_URL=https://lobe.msftconnecttest.com/ KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ= DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/lobe NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg NEXT_AUTH_SSO_PROVIDERS=logto NEXTAUTH_URL=https://lobe.msftconnecttest.com/api/auth LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET LOGTO_ISSUER=https://lobe-auth-api.msftconnecttest.com/oidc S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY S3_ENDPOINT=https://lobe-s3-api.msftconnecttest.com S3_BUCKET=lobe S3_PUBLIC_DOMAIN=https://lobe-s3-api.msftconnecttest.com S3_ENABLE_PATH_STYLE=1

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Doker compose is no problemimage

I also docker-compose, but I keep getting errors when creating applications. I deploy on the intranet, can you help me check it out?

You can send the dockerfile and env files to troubleshoot the problem together

I can send it out docker-composer version: '3.8' services: postgresql: image: registry.us-west-1.aliyuncs.com/jg-images/pgvector:pg16 container_name: lobe-postgres ports:

volumes: data: driver:local s3_data: driver:local

env

APP_URL=https://lobe.msftconnecttest.com/ KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ= DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/lobe NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg NEXT_AUTH_SSO_PROVIDERS=logto NEXTAUTH_URL=https://lobe.msftconnecttest.com/api/auth LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET LOGTO_ISSUER=https://lobe-auth-api.msftconnecttest.com/oidc S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY S3_ENDPOINT=https://lobe-s3-api.msftconnecttest.com S3_BUCKET=lobe S3_PUBLIC_DOMAIN=https://lobe-s3-api.msftconnecttest.com S3_ENABLE_PATH_STYLE=1

Wilburn-hub commented 1 month ago

Doker compose 没问题的image

我也是docker-compose但是创建应用就一直报错,我是内网部署,你能帮我看看嘛

你可以把dockerfile 和 env文件发出来一起排查问题

可以我发出来 docker-composer version: '3.8' services: postgresql: image: registry.us-west-1.aliyuncs.com/jg-images/pgvector:pg16 container_name: lobe-postgres ports: - '5432:5432' volumes: - './data:/var/lib/postgresql/data' environment: - 'POSTGRES_DB=lobe' - 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC' healthcheck: test: ['CMD-SHELL', 'pg_isready -U postgres'] interval: 5s timeout: 5s retries: 5 restart: always

minio: image: registry.us-west-1.aliyuncs.com/jg-images/minio:latest container_name: lobe-minio ports: - '9000:9000' - '9001:9001' volumes: - './s3_data:/etc/minio/data' environment: - 'MINIO_ROOT_USER=minioadmin' - 'MINIO_ROOT_PASSWORD=minioadmin' - 'MINIO_DOMAIN=lobe-s3-api.msftconnecttest.com' - 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.msftconnecttest.com' restart: always command: > server /etc/minio/data --address ":9000" --console-address ":9001"

logto: image: registry.us-west-1.aliyuncs.com/jg-images/logto:latest container_name: lobe-logto ports: - '3001:3001' - '3002:3002' volumes: - '/root/0911/resolv.conf:/etc/resolv.conf' - '/etc/nginx/ssl:/etc/nginx/ssl' depends_on: postgresql: condition: service_healthy environment: - 'TRUST_PROXY_HEADER=1' - 'DB_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/logto' - 'ENDPOINT=https://lobe-auth-api.msftconnecttest.com' - 'ADMIN_ENDPOINT=https://lobe-auth-ui.msftconnecttest.com' - 'NODE_EXTRA_CA_CERTS=/etc/nginx/ssl/ai.jiu-guang.com.crt' entrypoint: ['sh', '-c', 'npm run cli db seed -- --swe && npm start'] restart: always

lobe: image: registry.us-west-1.aliyuncs.com/jg-images/lobe-chat-database container_name: lobe-database ports: - '3210:3210' depends_on: - postgresql - minio - logto env_file: - .env restart: always

volumes: data: driver: local s3_data: driver: local

env

APP_URL=https://lobe.msftconnecttest.com/ KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ= DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/lobe NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg NEXT_AUTH_SSO_PROVIDERS=logto NEXTAUTH_URL=https://lobe.msftconnecttest.com/api/auth LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET LOGTO_ISSUER=https://lobe-auth-api.msftconnecttest.com/oidc S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY S3_ENDPOINT=https://lobe-s3-api.msftconnecttest.com S3_BUCKET=lobe S3_PUBLIC_DOMAIN=https://lobe-s3-api.msftconnecttest.com S3_ENABLE_PATH_STYLE=1

image

看来你的env没有填 这个

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Doker compose is no problemimage

I also docker-compose but I keep getting errors when creating an application. I am deploying on the intranet. Can you help me check it out?

You can send the dockerfile and env files to troubleshoot the problem together

I can issue docker-composer version: '3.8' services: postgresql: image: registry.us-west-1.aliyuncs.com/jg-images/pgvector:pg16 container_name: lobe-postgres ports: - '5432:5432 ' volumes: - './data:/var/lib/postgresql/data' environment: - 'POSTGRES_DB=lobe' - 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC' healthcheck: test: ['CMD-SHELL', 'pg_isready -U postgres'] interval: 5s timeout: 5s retries: 5 restart: always

minio: image: registry.us-west-1.aliyuncs.com/jg-images/minio:latest container_name: lobe-minio ports: - '9000:9000' - '9001:9001' volumes: - './s3_data :/etc/minio/data' environment: - 'MINIO_ROOT_USER=minioadmin' - 'MINIO_ROOT_PASSWORD=minioadmin' - 'MINIO_DOMAIN=lobe-s3-api.msftconnecttest.com' - 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.msftconnecttest.com' restart: always command: > server /etc/minio/data --address ":9000" --console-address ":9001"

logto: image: registry.us-west-1.aliyuncs.com/jg-images/logto:latest container_name: lobe-logto ports: - '3001:3001' - '3002:3002' volumes: - '/root/ 0911/resolv.conf:/etc/resolv.conf' - '/etc/nginx/ssl:/etc/nginx/ssl' depends_on: postgresql: condition: service_healthy environment: - 'TRUST_PROXY_HEADER=1' - 'DB_URL=postgresql: //postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/logto' - 'ENDPOINT=https://lobe-auth-api.msftconnecttest.com' - 'ADMIN_ENDPOINT=https://lobe-auth-ui.msftconnecttest.com' - 'NODE_EXTRA_CA_CERTS=/etc/nginx/ssl/ai.jiu-guang.com.crt' entrypoint: ['sh', '-c', 'npm run cli db seed -- --swe && npm start'] restart : always

lobe: image: registry.us-west-1.aliyuncs.com/jg-images/lobe-chat-database container_name: lobe-database ports: - '3210:3210' depends_on: - postgresql - minio - logto env_file: - .env restart: always

volumes: data: driver: local s3_data: driver: local

env

APP_URL=https://lobe.msftconnecttest.com/ KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ= DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/lobe N EXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg NEXT_AUTH_SSO_PROVIDERS=logto NEXTAUTH_URL=https://lobe. msftconnecttest.com/api/auth LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET LOGTO_ISSUER=https://lobe-auth-api.msftconnecttest.com/oidc S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID S3_SECRET_ACCESS_KEY =YOUR_S3_SECRET_ACCESS_KEY S3_ENDPOINT=https://lobe-s3-api.msftconnecttest. com S3_BUCKET=lobe S3_PUBLIC_DOMAIN=https://lobe-s3-api.msftconnecttest.com S3_ENABLE_PATH_STYLE=1

image

It seems that your env has not filled in this

zhangleijun111 commented 1 month ago

Doker compose 没问题的图像

我也是docker-compose但是创建应用就一直报错,我是内网部署,你能帮我看看嘛

你可以把dockerfile 和 env文件发出来一起排查问题

可以我发出来 docker-composer version: '3.8' services: postgresql: image: registry.us-west-1.aliyuncs.com/jg-images/pgvector:pg16 container_name: lobe-postgres ports: - '5432:5432' volumes: - './data:/var/lib/postgresql/data' 环境: - 'POSTGRES_DB=lobe' - 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC' healthcheck: test: ['CMD-SHELL', 'pg_isready -U postgres'] interval: 5s 超时: 5s 重试次数: 5 重启: always minio: 映像: registry.us-west-1.aliyuncs.com/jg-images/minio:latest container_name: lobe-minio 端口: - '9000:9000' - '9001:9001' 卷: - './s3_data:/etc/minio/data' 环境: - 'MINIO_ROOT_USER=minioadmin' - 'MINIO_ROOT_PASSWORD=minioadmin' - 'MINIO_DOMAIN=lobe-s3-api.msftconnecttest.com' - 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.msftconnecttest.com' 重启: 始终命令: >服务器 /etc/minio/data --address “:9000” --console-address “:9001” logto: image: registry.us-west-1.aliyuncs.com/jg-images/logto:latest container_name: lobe-logto ports: - '3001:3001' - '3002:3002' 卷: - '/root/0911/resolv.conf:/etc/resolv.conf' - '/etc/nginx/ssl:/etc/nginx/ssl' depends_on: PostgreSQL: 条件: service_healthy 环境: - 'TRUST_PROXY_HEADER=1' - 'DB_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/logto' - 'ENDPOINT=https://lobe-auth-api.msftconnecttest.com' - 'ADMIN_ENDPOINT=https://lobe-auth-ui.msftconnecttest.com' - 'NODE_EXTRA_CA_CERTS=/etc/nginx/ssl/ai.jiu-guang.com.crt' 入口点: ['sh', '-c', 'npm run cli db seed -- --swe & npm start'] 重启: 总是 lobe: image: registry.us-west-1.aliyuncs.com/jg-images/lobe-chat-database container_name: lobe-database ports: - '3210:3210' depends_on: - PostgreSQL - minio - logto env_file: - .env restart: always 卷: 数据: 驱动程序: 本地 s3_data: 驱动程序: 本地 环境 APP_URL=https://lobe.msftconnecttest.com/ KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ= DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/lobe NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg NEXT_AUTH_SSO_PROVIDERS=logto NEXTAUTH_URL=https://lobe.msftconnecttest.com/api/auth LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET LOGTO_ISSUER=https://lobe-auth-api.msftconnecttest.com/oidc S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY S3_ENDPOINT=https://lobe-s3-api.msftconnecttest.com S3_BUCKET=叶 S3_PUBLIC_DOMAIN=https://lobe-s3-api.msftconnecttest.com S3_ENABLE_PATH_STYLE=1

图像看来你的env没有填 这个

我无法创建应用怎么填啊 捕获

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Doker compose no problemimage

I also docker-compose but I keep getting errors when creating the application. I am deploying on the intranet. Can you help me check it out?

You can send the dockerfile and env files to troubleshoot the problem together.

Can I issue docker-composer version: '3.8' services: postgresql: image: registry.us-west-1.aliyuncs.com/jg-images/pgvector:pg16 container_name: lobe-postgres ports: - '5432: 5432' volumes: - './data:/var/lib/postgresql/data' environment: - 'POSTGRES_DB=lobe' - 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC' healthcheck: test: ['CMD-SHELL', 'pg_isready -U postgres' ] interval: 5s timeout: 5s retries: 5 restart: always minio: image: registry.us-west-1.aliyuncs.com/jg-images/minio:latest container_name: lobe-minio port: - '9000:9000' - '9001:9001' volume: - './ s3_data:/etc/minio/data' Environment: - 'MINIO_ROOT_USER=minioadmin' - 'MINIO_ROOT_PASSWORD=minioadmin' - 'MINIO_DOMAIN=lobe-s3-api.msftconnecttest.com' - 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.msftconnecttest.com ' Restart: always command: > server /etc/minio/data --address ":9000" --console-address ":9001" logto: image: registry.us-west-1.aliyuncs.com/jg-images/logto:latest container_name: lobe-logto ports: - '3001:3001' - '3002:3002' volumes: - '/root /0911/resolv.conf:/etc/resolv.conf' - '/etc/nginx/ssl:/etc/nginx/ssl' depends_on: PostgreSQL: Condition: service_healthy Environment: - 'TRUST_PROXY_HEADER=1' - 'DB_URL=postgresql ://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/logto' - 'ENDPOINT=https://lobe-auth-api.msftconnecttest.com' - 'ADMIN_ENDPOINT=https://lobe-auth-ui.msftconnecttest.com ' - 'NODE_EXTRA_CA_CERTS=/etc/nginx/ssl/ai.jiu-guang.com.crt' Entry point: ['sh', '-c', 'npm run cli db seed -- --swe & npm start' ] Restart: always lobe: image: registry.us-west-1.aliyuncs.com/jg-images/lobe-chat-database container_name: lobe-database ports: - '3210:3210' depends_on: - PostgreSQL - minio - logto env_file: - .env restart: always volumes: data: driver: local s3_data: driver: local Environment APP_URL=https://lobe.msftconnecttest.com/ KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ= DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/ lobe NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg NEXT_AUTH_SSO_PROVIDERS=logto NEXTAUTH_URL=https://lobe .msftconnecttest.com/api/auth LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET LOGTO_ISSUER=https://lobe-auth-api.msftconnecttest.com/oidc S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID S3_SECRET_ACCESS_K EY=YOUR_S3_SECRET_ACCESS_KEY S3_ENDPOINT=https://lobe-s3-api.msftconnecttest .com S3_BUCKET=ye S3_PUBLIC_DOMAIN=https://lobe-s3-api.msftconnecttest.com S3_ENABLE_PATH_STYLE=1

imageIt seems that your env did not fill in this

I can't create an application, how do I fill it in? Capture

Wilburn-hub commented 1 month ago

Doker compose 没问题的图像

我也是docker-compose但是创建应用就一直报错,我是内网部署,你能帮我看看嘛

你可以把dockerfile 和 env文件发出来一起排查问题

可以我发出来 docker-composer version: '3.8' services: postgresql: image: registry.us-west-1.aliyuncs.com/jg-images/pgvector:pg16 container_name: lobe-postgres ports: - '5432:5432' volumes: - './data:/var/lib/postgresql/data' 环境: - 'POSTGRES_DB=lobe' - 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC' healthcheck: test: ['CMD-SHELL', 'pg_isready -U postgres'] interval: 5s 超时: 5s 重试次数: 5 重启: always minio: 映像: registry.us-west-1.aliyuncs.com/jg-images/minio:latest container_name: lobe-minio 端口: - '9000:9000' - '9001:9001' 卷: - './s3_data:/etc/minio/data' 环境: - 'MINIO_ROOT_USER=minioadmin' - 'MINIO_ROOT_PASSWORD=minioadmin' - 'MINIO_DOMAIN=lobe-s3-api.msftconnecttest.com' - 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.msftconnecttest.com' 重启: 始终命令: >服务器 /etc/minio/data --address “:9000” --console-address “:9001” logto: image: registry.us-west-1.aliyuncs.com/jg-images/logto:latest container_name: lobe-logto ports: - '3001:3001' - '3002:3002' 卷: - '/root/0911/resolv.conf:/etc/resolv.conf' - '/etc/nginx/ssl:/etc/nginx/ssl' depends_on: PostgreSQL: 条件: service_healthy 环境: - 'TRUST_PROXY_HEADER=1' - 'DB_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/logto' - 'ENDPOINT=https://lobe-auth-api.msftconnecttest.com' - 'ADMIN_ENDPOINT=https://lobe-auth-ui.msftconnecttest.com' - 'NODE_EXTRA_CA_CERTS=/etc/nginx/ssl/ai.jiu-guang.com.crt' 入口点: ['sh', '-c', 'npm run cli db seed -- --swe & npm start'] 重启: 总是 lobe: image: registry.us-west-1.aliyuncs.com/jg-images/lobe-chat-database container_name: lobe-database ports: - '3210:3210' depends_on: - PostgreSQL - minio - logto env_file: - .env restart: always 卷: 数据: 驱动程序: 本地 s3_data: 驱动程序: 本地 环境 APP_URL=https://lobe.msftconnecttest.com/ KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ= DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/lobe NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg NEXT_AUTH_SSO_PROVIDERS=logto NEXTAUTH_URL=https://lobe.msftconnecttest.com/api/auth LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET LOGTO_ISSUER=https://lobe-auth-api.msftconnecttest.com/oidc S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY S3_ENDPOINT=https://lobe-s3-api.msftconnecttest.com S3_BUCKET=叶 S3_PUBLIC_DOMAIN=https://lobe-s3-api.msftconnecttest.com S3_ENABLE_PATH_STYLE=1

图像看来你的env没有填 这个

我无法创建应用怎么填啊 捕获

明白了,我的问题,那只能看看前端是否有报错信息,数据库连接是否正常,代理是否正确来排查了

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Doker compose no problemimage

I also docker-compose but I keep getting errors when creating an application. I am deploying on the intranet. Can you help me check it out?

You can send the dockerfile and env files to troubleshoot the problem together.

Can I issue docker-composer version: '3.8' services: postgresql: image: registry.us-west-1.aliyuncs.com/jg-images/pgvector:pg16 container_name: lobe-postgres ports: - '5432 :5432' volumes: - './data:/var/lib/postgresql/data' environment: - 'POSTGRES_DB=lobe' - 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC' healthcheck: test: ['CMD-SHELL', 'pg_isready -U postgres '] interval: 5s timeout: 5s retries: 5 restart: always minio: image: registry.us-west-1.aliyuncs.com/jg-images/minio:latest container_name: lobe-minio port: - '9000:9000' - '9001:9001' volume: - '. /s3_data:/etc/minio/data' Environment: - 'MINIO_ROOT_USER=minioadmin' - 'MINIO_ROOT_PASSWORD=minioadmin' - 'MINIO_DOMAIN=lobe-s3-api.msftconnecttest.com' - 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.msftconnecttest. com' restart: always command: >server /etc/minio/data --address ":9000" --console-address ":9001" logto: image: registry.us-west-1.aliyuncs.com/jg-images/logto:latest container_name: lobe-logto ports: - '3001:3001' - '3002:3002' volumes: - '/ root/0911/resolv.conf:/etc/resolv.conf' - '/etc/nginx/ssl:/etc/nginx/ssl' depends_on: PostgreSQL: Condition: service_healthy Environment: - 'TRUST_PROXY_HEADER=1' - 'DB_URL= postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/logto' - 'ENDPOINT=https://lobe-auth-api.msftconnecttest.com' - 'ADMIN_ENDPOINT=https://lobe-auth-ui.msftconnecttest. com' - 'NODE_EXTRA_CA_CERTS=/etc/nginx/ssl/ai.jiu-guang.com.crt' Entry point: ['sh', '-c', 'npm run cli db seed -- --swe & npm start '] Restart: always lobe: image: registry.us-west-1.aliyuncs.com/jg-images/lobe-chat-database container_name: lobe-database ports: - '3210:3210' depends_on: - PostgreSQL - minio - logto env_file : - .env restart: always volumes: data: driver: local s3_data: driver: local Environment APP_URL=https://lobe.msftconnecttest.com/ KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ= DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432 /lobe NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg NEXT_AUTH_SSO_PROVIDERS=logto NEXTAUTH_URL=https:// lobe.msftconnecttest.com/api/auth LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET LOGTO_ISSUER=https://lobe-auth-api.msftconnecttest.com/oidc S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID S3_SECRETACCESS KEY=YOUR_S3_SECRET_ACCESS_KEY S3_ENDPOINT=https://lobe-s3-api. msftconnecttest.com S3_BUCKET=ye S3_PUBLIC_DOMAIN=https://lobe-s3-api.msftconnecttest.com S3_ENABLE_PATH_STYLE=1

imageIt seems that your env did not fill in this

I can't create an application, how to fill it in ![Capture](https://private-user-images.githubusercontent.com/169867372/368823568-26bf5f6d-3aca-4c65-b80f-8273251c68df.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpX VCJ9.eyJpc3 MiOiJna 8xNjk4NjczNzIvMzY4ODIzNTY4LTI2YmY1ZjZkLTNhY2EtNGM2NS1iODBmLTgyNzMyNTFjNjh kZi5QTkc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhb D1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkxOVQwMjU3MzJaJlgtQW16LUV4cGlyZXM9M zAwJlgtQW16LVNpZ25hdHVyZT02MWFiMzBmM2M2OWE5ZGJiOGNlMWQ5MDhhYmZjOWZmNDEwMGI2NmQ4NjM0MzRiODkyZjcxMmIzODE1ZDY3Mjc3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9z dCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9 .IZ8rWS4ClJ46m0UvcMI4fsZLpB-f9PbHg6-TV1sq0)

Got it, my question is, I can only troubleshoot by checking whether there is an error message on the front end, whether the database connection is normal, and whether the agent is correct.

zhangleijun111 commented 1 month ago

Doker compose 没问题的图像

我也是docker-compose但是创建应用就一直报错,我是内网部署,你能帮我看看嘛

你可以把dockerfile 和 env文件发出来一起排查问题

可以我发出来 docker-composer version: '3.8' services: postgresql: image: registry.us-west-1.aliyuncs.com/jg-images/pgvector:pg16 container_name: lobe-postgres ports: - '5432:5432' volumes: - './data:/var/lib/postgresql/data' 环境: - 'POSTGRES_DB=lobe' - 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC' healthcheck: test: ['CMD-SHELL', 'pg_isready -U postgres'] interval: 5s 超时: 5s 重试次数: 5 重启: alwaysminio: 映像: registry.us-west-1.aliyuncs.com/jg-images/minio:latest container_name: lobe-minio 端口: - '9000:9000' - '9001:9001' 卷: - './s3_data:/etc/minio/data' 环境: - 'MINIO_ROOT_USER=minioadmin' - 'MINIO_ROOT_PASSWORD=minioadmin' - 'MINIO_DOMAIN=lobe-s3-api.msftconnecttest.com' - 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.msftconnecttest.com' 重启: 始终命令: >服务器 /etc/minio/data --address “:9000” --console-address “:9001”logto: image: registry.us-west-1.aliyuncs.com/jg-images/logto:latest container_name: lobe-logto ports: - '3001:3001' - '3002:3002' 卷: - '/root/0911/resolv.conf:/etc/resolv.conf' - '/etc/nginx/ssl' depends_on: PostgreSQL: 条件: service_healthy 环境: - 'TRUST_PROXY_HEADER=1' - 'DB_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/logto' - 'ENDPOINT=https://lobe-auth-api.msftconnecttest.com' - 'ADMIN_ENDPOINT=https://lobe-auth-ui.msftconnecttest.com' - 'NODE_EXTRA_CA_CERTS=/etc/nginx/ssl/ai.jiu-guang.com.crt' 入口点: ['sh', '-c', 'npm run cli db seed -- --swe & npm start'] 重启: 总是 lobe: image: registry.us-west-1.aliyuncs.com/jg-images/lobe-chat-database container_name: lobe-database ports: - '3210:3210' depends_on: - PostgreSQL - minio - logto env_file: - .env restart: always 卷: 数据: 驱动程序: 本地 s3_data: 驱动程序: 本地 环境 APP_URL=https://lobe.msftconnecttest.com/ KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ= DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/lobe NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg NEXT_AUTH_SSO_PROVIDERS=logto NEXTAUTH_URL=https://lobe.msftconnecttest.com/api/auth LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET LOGTO_ISSUER=https://lobe-auth-api.msftconnecttest.com/oidc S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY S3_ENDPOINT=https://lobe-s3-api.msftconnecttest.com S3_BUCKET=叶 S3_PUBLIC_DOMAIN=https://lobe-s3-api.msftconnecttest.com S3_ENABLE_PATH_STYLE=1

图像看来你的env没有填 这个

我无法创建应用怎么填啊 捕获

明白了,我的问题,那只能看看前端是否有报错信息,数据库连接是否正常,代理是否正确来排查了

看log??你的docker-compose和env有问题吗,我搞了2周了dns和密钥都做了映射

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Doker compose no problemimage

I also docker-compose but I keep getting errors when creating an application. I am deploying on the intranet. Can you help me check it out?

You can send the dockerfile and env file to troubleshoot the problem together.

Can I issue docker-composer version: '3.8' services: postgresql: image: registry.us-west-1.aliyuncs.com/jg-images/pgvector:pg16 container_name: lobe-postgres ports: - ' 5432: 5432' volumes: - './data:/var/lib/postgresql/data' environment: - 'POSTGRES_DB=lobe' - 'POSTGRES_PASSWORD=uWNZugjBqixf8dxC' healthcheck: test: ['CMD-SHELL', 'pg_isready -U postgres'] interval: 5s timeout: 5s retries: 5 restart: alwaysminio: image: registry.us-west-1.aliyuncs.com/jg-images/minio:latest container_name: lobe-minio port: - '9000: 9000' - '9001:9001' Volume: - './s3_data:/etc/minio/data' Environment: - 'MINIO_ROOT_USER=minioadmin' - 'MINIO_ROOT_PASSWORD=minioadmin' - 'MINIO_DOMAIN=lobe-s3-api.msftconnecttest.com ' - 'MINIO_API_CORS_ALLOW_ORIGIN=https://lobe.msftconnecttest.com' Restart: always command: >server /etc/minio/data --address ":9000" --console-address ":9001" logto: image: registry. us-west-1.aliyuncs.com/jg-images/logto:latest container_name: lobe-logto ports: - '3001:3001' - '3002:3002' volumes: - '/root/0911/resolv.conf:/ etc/resolv.conf' - '/etc/nginx/ssl' depends_on: PostgreSQL: Condition: service_healthy Environment: - 'TRUST_PROXY_HEADER=1' - 'DB_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.20.8.120:5432/logto' - 'ENDPOINT=https://lobe-auth-api.msftconnecttest.com' - 'ADMIN_ENDPOINT=https://lobe-auth-ui.msftconnecttest.com' - 'NODE_EXTRA_CA_CERTS=/etc/nginx/ssl/ai.jiu -guang.com.crt' entry point: ['sh', '-c', 'npm run cli db seed -- --swe & npm start'] Restart: always lobe: image: registry.us-west- 1.aliyuncs.com/jg-images/lobe-chat-database container_name: lobe-database ports: - '3210:3210' depends_on: - PostgreSQL - minio - logto env_file: - .env restart: always volumes: data: driver : local s3_data: driver: local environment APP_URL=https://lobe.msftconnecttest.com/ KEY_VAULTS_SECRET=Kix2wcUONd4CX51E/ZPAd36BqM4wzJgKjPtz2sGztqQ=DATABASE_URL=postgresql://postgres:uWNZugjBqixf8dxC@172.2 0.8.120: 5432/lobe NEXT_AUTH_SECRET=NX2kaPE923dt6BL2U8e9oSre5RfoT7hg NEXT_AUTH_SSO_PROVIDERS=logto NEXTAUTH_URL=https://lobe.msftconnecttest.com/api/auth LOGTO_CLIENT_ID=YOUR_LOGTO_CLIENT_ID LOGTO_CLIENT_SECRET=YOUR_LOGTO_CLIENT_SECRET LOGTO_ISSUER=https://lobe-auth-api.msftconnecttest.com/oidc S3_ACCESS_KEY_ID=YOUR_S3_ACCESS_KEY_ID S3_SECRET_ACCESS_KEY=YOUR_S3_SECRET_ACCESS_KEY S3_ENDPOINT=https:// lobe-s3-api.msftconnecttest.com S3_BUCKET=ye S3_PUBLIC_DOMAIN=https://lobe-s3-api.msftconnecttest.com S3_ENABLE_PATH_STYLE=1

imageIt seems that your env did not fill in this

I can't create an application, how to fill it in ![Capture](https://private-user-images.githubusercontent.com/169867372/368823568-26bf5f6d-3aca-4c65-b80f-8273251c68df.PNG?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6Ikp XVCJ9.eyJpc3MiOiJna Ii8xNjk4NjczNzIvMzY4ODIzNTY4LTI2YmY1ZjZkLTNhY2EtNGM2NS1iODBmLTgyNzMyNTFjNjhkZi5QTkc_ WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3J 1 NjM0MzRiODkyZjcxMmIzODE1ZDY3Mjc3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3R vcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.IZ8rWS4ClJ46m0UvcMI4fsZLpB-f9Pb Hg6-TV1sq0)

Got it, my question is, I can only check if there is an error message on the front end, if the database connection is normal, and if the proxy is correct.

Look at the log? ? Is there a problem with your docker-compose and env? I've been working on it for 2 weeks and the dns and keys have been mapped.

kzart888 commented 1 month ago

跟你一样的问题,我是部署完成以后注册logto没问题,登录进去就啥也干不了,全部都是unauthorized

lobehubbot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I have the same problem as you. After the deployment is completed, I have no problem registering logto. But I can’t do anything after logging in. Everything is unauthorized.

JamesFlare1212 commented 1 month ago

我觉得是你https的问题,Logto官方说,绝大部分操作都必须在https下,确保安全才能正常请求。还不光是反向代理https,还得传递X-Forwarded-Proto标头到后端。可以看看我踩坑的这篇文章:使用 Docker Compose 部署 LobeChat 服务端数据库版本

这是我里面参考Logto报错的讨论:https://github.com/logto-io/logto/issues/4279

arvinxx commented 3 weeks ago

新版文档已上线,推荐使用 Casdoor。 https://lobehub.com/zh/docs/self-hosting/server-database/docker-compose

lobehubbot commented 3 weeks ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


A new version of the documentation is now online, and it is recommended to use Casdoor. https://lobehub.com/en/docs/self-hosting/server-database/docker-compose

lobehubbot commented 3 weeks ago

✅ @zhangleijun111

This issue is closed, If you have any questions, you can comment and reply.\ 此问题已经关闭。如果您有任何问题,可以留言并回复。