Skip to content
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

📝 docs: update local docker-compose auth to casdoor #3855

Merged
merged 25 commits into from
Sep 24, 2024

Conversation

cy948
Copy link
Contributor

@cy948 cy948 commented Sep 9, 2024

💻 变更类型 | Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • 📝 docs
  • 🔨 chore

🔀 变更说明 | Description of Change

  • rename docker-compose/local/ => docker-compose/local-logto/
  • docs/self-hosting/server-database/docker-compose.mdx: 重命名后更新文档;
  • docker-compose/local/.env.example, docker-compose/demo/.env.zh-CN.example: 提前定义Casdoor的环境变量;
  • docker-compose/local/docker-compose.yml: 接入Casdoor,定义初始化行为;
  • docker-compose/local/init_data.json.tar.gz: Casdoor初始化配置,ref;
  • docker-compose/local/s3_data.tar.gz: Minio初始化配置,
  • docker-compose/local/setup.sh: 准备阶段脚本;

📝 补充信息 | Additional Information

  1. 使用说明:
  • 下载配置
    中文
bash <(curl -fsSL https://raw.githubusercontent.com/lobehub/lobe-chat/HEAD/docker-compose/local/setup.sh) -f -l zh_CN

En

bash <(curl -fsSL https://raw.githubusercontent.com/lobehub/lobe-chat/HEAD/docker-compose/local/setup.sh) -f -l en_US

脚本参数说明:

  • -f: 强制下载附件
  • -l:选择脚本语言,有 zh_CN 可选,默认为en
  • 修改.env
  • 启动
docker compose up
admin
123
  1. 重新生成init_data.json

⚠️ 该部分文档已废弃,更好的文档在 #4259

  • 使用casdoor镜像,连接一个空的数据库,在UI界面进行操作、配置
  • clone casdoor项目,运行
# Require go >= 1.20
go mod download
go test ./object -v -run TestDumpToFile
cd ./object
mv init_data_dump.json init_data.json
tar -czvf init_data.json.tar.gz init_data.json
  1. 重新生成s3_data

该部分为minio的挂载文件夹,.env.example中的S3_*发生变更则需要重新打包;

  • 运行minio,按照文档的方式创建Bucket和AccessKey,并进行记录;
  • 根据BucketName和AccessKey修改环境变量示例env.example;
  • 直接对文件夹进行压缩
tar -czvf s3_data.tar.gz s3_data

Copy link

vercel bot commented Sep 9, 2024

@cy948 is attempting to deploy a commit to the LobeHub Pro Team on Vercel.

A member of the Team first needs to authorize it.

@lobehubbot
Copy link
Member

👍 @cy948

Thank you for raising your pull request and contributing to our Community
Please make sure you have followed our contributing guidelines. We will review it as soon as possible.
If you encounter any problems, please feel free to connect with us.
非常感谢您提出拉取请求并为我们的社区做出贡献,请确保您已经遵循了我们的贡献指南,我们会尽快审查它。
如果您遇到任何问题,请随时与我们联系。

@cy948 cy948 changed the title 👷 ci: casdoor in compose 👷 CI: Add demo application Sep 9, 2024
Copy link

codecov bot commented Sep 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.45%. Comparing base (8170889) to head (6094095).
Report is 96 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3855      +/-   ##
==========================================
+ Coverage   91.73%   92.45%   +0.72%     
==========================================
  Files         481      482       +1     
  Lines       34215    34354     +139     
  Branches     3297     2276    -1021     
==========================================
+ Hits        31388    31763     +375     
+ Misses       2827     2591     -236     
Flag Coverage Δ
app 92.45% <ø> (+0.72%) ⬆️
server 97.36% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@arvinxx
Copy link
Contributor

arvinxx commented Sep 9, 2024

这个方案是本地体验还是生产也可以用?

@lobehubbot
Copy link
Member

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


Is this solution a local experience or can it also be used in production?

@cy948
Copy link
Contributor Author

cy948 commented Sep 10, 2024

这个方案是本地体验还是生产也可以用?

@arvinxx 推荐本地体验,用于生产则需要更改密钥。但改密钥又会回到像logto那样复杂的配置过程,还是作为本地体验版本好点?

@lobehubbot
Copy link
Member

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


Is this solution a local experience or can it also be used in production?

@arvinxx recommends local experience, for production use you need to change the key.

@arvinxx
Copy link
Contributor

arvinxx commented Sep 11, 2024

@cy948 那就直接替换本地那个 logto 的文件夹吧。或者 logto 的改个别的名字,local-logto

@lobehubbot
Copy link
Member

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


@cy948 Then just replace the local logto folder directly. Or change logto to another name, local-logto

@cy948 cy948 marked this pull request as ready for review September 11, 2024 12:00
@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Sep 11, 2024
docker-compose/local/.env.zh-CN.example Outdated Show resolved Hide resolved
docker-compose/local/docker-compose.yml Outdated Show resolved Hide resolved
@cy948 cy948 changed the title 👷 CI: Add demo application 👷 build: Add demo application Sep 13, 2024
@zhuozhiyongde
Copy link
Contributor

睡了 20 个小时,来干活了!

  1. 下载下来的 .env 没有根据语言参数切换
  2. 应该是 docker compose up -d
  3. 首先打开的应该是 8000 端口,而不是 lobe 的 3210

@lobehubbot
Copy link
Member

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


~~After 20 hours of sleep, come to work! ~~

  1. The downloaded .env is not switched according to the language parameters.
  2. It should be docker compose up -d
  3. The port 8000 should be opened first, not the lobe’s 3210

@zhuozhiyongde
Copy link
Contributor

docker compose up -d 现在也启动不起来,lobe 报错 Error: [NextAuth] provider generic-oidc is not supported

是由于相关 PR 没有合并触发 docker 的相应构建吗

@lobehubbot
Copy link
Member

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


docker compose up -d cannot be started now, lobe reports an error Error: [NextAuth] provider generic-oidc is not supported

Is it because the relevant PR is not merged to trigger the corresponding build of docker?

@cy948
Copy link
Contributor Author

cy948 commented Sep 15, 2024

@zhuozhiyongde 你看看是不是本地的 lobechat-database 镜像没有更新?

@lobehubbot
Copy link
Member

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


@zhuozhiyongde Could you please check if the local lobechat-database image has not been updated?

@zhuozhiyongde
Copy link
Contributor

@zhuozhiyongde 你看看是不是本地的 lobechat-database 镜像没有更新?

我去,睡傻了

@lobehubbot
Copy link
Member

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


@zhuozhiyongde Can you see if the local lobechat-database image has not been updated?

I'm going to sleep like crazy

@zhuozhiyongde
Copy link
Contributor

  1. 下载下来的 tar.gz 压缩格式没有删除

@lobehubbot
Copy link
Member

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


  1. The downloaded tar.gz compressed format is not deleted.

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Sep 21, 2024
@cy948 cy948 marked this pull request as draft September 21, 2024 03:19
@lobehubbot
Copy link
Member

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


In addition, the purpose of going to casdoor is not because logto production deployment is very troublesome, but you said that production is not possible. . . .

What I mean is that the current local solution under PR cannot be directly used for production. Please explore the production solution by yourself without answering related questions.

@zhangleijun111
Copy link

zhangleijun111 commented Sep 25, 2024 via email

@BiFangKNT
Copy link
Contributor

那我把localhost换成ip给内网其他机器访问,报前面这个错误是正常的是吧?????

问题超出维护范围,不作解答,请见谅。

不是啊正常我的理解localhost全部变成部署这台机器的ip的话,其他机器通过访问ip:3210就能实现生产的效果了,这样也能实现我要到的效果了,问题是不行。

哥们,我不理解你所谓的生产环境是什么环境,不理解你为什么执着于把localhost改成局域网ip。这俩没有本质上的不同啊。

@lobehubbot
Copy link
Member

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


Then I change localhost to IP for other machines in the intranet to access. Is it normal to report the above error?????

The question is beyond the scope of maintenance and we will not answer it. Please forgive me.

No, it’s normal. My understanding is that if localhost becomes the IP of this machine, other machines can achieve the production effect by accessing IP: 3210. This can also achieve the effect I want. The problem is that it doesn’t work.

Brother, I don't understand what you mean by a production environment, and I don't understand why you insist on changing localhost to LAN IP. There is no fundamental difference between the two.

@zhangleijun111
Copy link

zhangleijun111 commented Sep 25, 2024 via email

@BiFangKNT
Copy link
Contributor

就是我部署完成其他机器访问我这台机器的ip:3210可以正常认证和使用lobedatabase 发自我的iPhone

------------------ Original ------------------ From: 彼方 @.> Date: Wed,Sep 25,2024 7:50 PM To: lobehub/lobe-chat @.> Cc: zhangleijun111 @.>, Comment @.> Subject: Re: [lobehub/lobe-chat] �� docs: update local docker-compose auth to casdoor (PR #3855) 那我把localhost换成ip给内网其他机器访问,报前面这个错误是正常的是吧????? 问题超出维护范围,不作解答,请见谅。 不是啊正常我的理解localhost全部变成部署这台机器的ip的话,其他机器通过访问ip:3210就能实现生产的效果了,这样也能实现我要到的效果了,问题是不行。 哥们,我不理解你所谓的生产环境是什么环境,不理解你为什么执着于把localhost改成局域网ip。这俩没有本质上的不同啊。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

你局域网的其他机器?那根本不影响好吧,localhost也能正常访问

@BiFangKNT
Copy link
Contributor

就是我部署完成其他机器访问我这台机器的ip:3210可以正常认证和使用lobedatabase 发自我的iPhone

------------------ Original ------------------ From: 彼方 @.> Date: Wed,Sep 25,2024 7:50 PM To: lobehub/lobe-chat _@**._> Cc: zhangleijun111 _@.>, Comment @._> Subject: Re: [lobehub/lobe-chat] �� docs: update local docker-compose auth to casdoor (PR #3855) 那我把localhost换成ip给内网其他机器访问,报前面这个错误是正常的是吧????? 问题超出维护范围,不作解答,请见谅。 不是啊正常我的理解localhost全部变成部署这台机器的ip的话,其他机器通过访问ip:3210就能实现生产的效果了,这样也能实现我要到的效果了,问题是不行。 哥们,我不理解你所谓的生产环境是什么环境,不理解你为什么执着于把localhost改成局域网ip。这俩没有本质上的不同啊。 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: _@_.*>

你局域网的其他机器?那根本不影响好吧,localhost也能正常访问

我的意思是,你lobe设置其他服务(s3那些)接入点为localhost,不影响你局域网内其他机器通过局域网ip访问

@zhangleijun111
Copy link

zhangleijun111 commented Sep 25, 2024 via email

@zhangleijun111
Copy link

就是我部署完成其他机器访问我这台机器的ip:3210可以正常认证和使用lobedatabase 发自我的iPhone ... ------------------ 原始------------------来自:彼方 @>日期:2024 年 9 月 25 日星期三晚上 7:50 收件人:lobehub/lobe-chat _@**_> 抄送: zhangleijun111 _@.>,评论 @>主题: 回复: [lobehub/lobe-chat] 文档: 更新本地 docker-compose auth 到 casdoor (PR #3855) 那我把localhost换成ip给内网其他机器访问,报前面这个错误是正常的吧?????问题超出维护范围,不作解答,请见谅。不是啊正常我的理解localhost全部变成部署这台机器的ip的话,其他机器通过访问ip:3210就能实现生产的效果了,这样也能实现我要到的效果了,问题是不行。哥们,我不理解你所谓的生产环境是什么环境,不理解你为什么执着于把localhost改成局域网ip。这俩没有本质上的不同啊。— 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您发表了评论。消息 ID:@_.*>

你局域网的其他机器?那根本不影响好吧,localhost也能正常访问

你看看图片主要是卡在lobechat点击登录这里

0ad087534044f20cced964f0ff8d721


80d07d4d5094b46b951c6cfb6924922
一个是部署lob的机器,另一台是内网的机器,所以我问localhost换成ip会不会可以解决这个问题

@lobehubbot
Copy link
Member

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


After I have completed the deployment, other machines can access my machine's IP: 3210, which can be authenticated and used lobedatabase normally. Sent from my iPhone ... --------------- ---Original------------------From: The other side_@. >Date: Wednesday, September 25, 2024 7:50 PM To: lobehub/lobe-chat _@**. **> Cc: zhangleijun111 @.>, comment _@**. >Topic: Reply: [lobehub/lobe-chat] Document: Update local docker-compose auth to casdoor (PR #3855) Then I change localhost to IP for other machines in the intranet to access. It is normal to report the previous error Right?????The question is beyond the scope of maintenance and there is no answer. Please forgive me. No, it's normal. My understanding is that if localhost becomes the IP of this machine, other machines can achieve the production effect by accessing IP: 3210. This can also achieve the effect I want. The problem is that it doesn't work. Brother, I don't understand what you mean by a production environment, and I don't understand why you insist on changing localhost to LAN IP. There is no fundamental difference between the two. — Reply directly to this email, view it on GitHub, or unsubscribe. You received this message because you left a comment. Message ID:@_.*>

Other machines on your LAN? That doesn't affect it at all. Localhost can also be accessed normally.

If you look at the picture, it is mainly stuck in lobechat. Click to log in here.

0ad087534044f20cced964f0ff8d721


80d07d4d5094b46b951c6cfb6924922
One is a machine where lob is deployed, and the other is a machine on the intranet, so I asked if changing localhost to IP would solve this problem.

@zhangleijun111
Copy link

就是我部署完成其他机器访问我这台机器的ip:3210可以正常认证和使用lobedatabase 发自我的iPhone ... ------------------ 原始------------------来自:彼方 @>日期:2024 年 9 月 25 日星期三晚上 7:50 收件人:lobehub/lobe-chat _@**_> 抄送: zhangleijun111 _@.>,评论 @>主题: 回复: [lobehub/lobe-chat] 文档: 更新本地 docker-compose auth 到 casdoor (PR #3855) 那我把localhost换成ip给内网其他机器访问,报前面这个错误是正常的吧?????问题超出维护范围,不作解答,请见谅。不是啊正常我的理解localhost全部变成部署这台机器的ip的话,其他机器通过访问ip:3210就能实现生产的效果了,这样也能实现我要到的效果了,问题是不行。哥们,我不理解你所谓的生产环境是什么环境,不理解你为什么执着于把localhost改成局域网ip。这俩没有本质上的不同啊。— 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您发表了评论。消息 ID:@_.*>

你局域网的其他机器?那根本不影响好吧,localhost也能正常访问

已经搞定了谢谢你

@lobehubbot
Copy link
Member

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


After I have completed the deployment, other machines can access my machine's IP: 3210, which can be authenticated and used lobedatabase normally. Sent from my iPhone ... --------------- ---Original------------------From: The other side_@. >Date: Wednesday, September 25, 2024 7:50 PM To: lobehub/lobe-chat _@**. **> Cc: zhangleijun111 @.>, comment _@**. >Topic: Reply: [lobehub/lobe-chat] Document: Update local docker-compose auth to casdoor (PR #3855) Then I change localhost to IP for other machines in the intranet to access. It is normal to report the previous error Right?????The question is beyond the scope of maintenance and there is no answer. Please forgive me. No, it's normal. My understanding is that if localhost becomes the IP of this machine, other machines can achieve the production effect by accessing IP: 3210. This can also achieve the effect I want. The problem is that it doesn't work. Brother, I don't understand what you mean by a production environment, and I don't understand why you insist on changing localhost to LAN IP. There is no fundamental difference between the two. — Reply directly to this email, view it on GitHub, or unsubscribe. You received this message because you left a comment. Message ID:@_.*>

Other machines on your LAN? That doesn't affect it at all. Localhost can also be accessed normally.

Already done thank you

@BiFangKNT
Copy link
Contributor

就是我部署完成其他机器访问我这台机器的ip:3210可以正常认证和使用lobedatabase 发自我的iPhone ... ------------------ 原始------------------来自:彼方 @>日期:2024 年 9 月 25 日星期三晚上 7:50 收件人:lobehub/lobe-chat _@**_> 抄送: zhangleijun111 _@.>,评论 @>主题: 回复: [lobehub/lobe-chat] 文档: 更新本地 docker-compose auth 到 casdoor (PR #3855) 那我把localhost换成ip给内网其他机器访问,报前面这个错误是正常的吧?????问题超出维护范围,不作解答,请见谅。不是啊正常我的理解localhost全部变成部署这台机器的ip的话,其他机器通过访问ip:3210就能实现生产的效果了,这样也能实现我要到的效果了,问题是不行。哥们,我不理解你所谓的生产环境是什么环境,不理解你为什么执着于把localhost改成局域网ip。这俩没有本质上的不同啊。— 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您发表了评论。消息 ID:@_.*>

你局域网的其他机器?那根本不影响好吧,localhost也能正常访问

你看看图片主要是卡在lobechat点击登录这里 0ad087534044f20cced964f0ff8d721

80d07d4d5094b46b951c6cfb6924922 一个是部署lob的机器,另一台是内网的机器,所以我问localhost换成ip会不会可以解决这个问题

你这浏览器是哪里的服务

@lobehubbot
Copy link
Member

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


After I have completed the deployment, other machines can access my machine's IP: 3210, which can be authenticated and used lobedatabase. Sent from my iPhone ... -------------- ----Original------------------From: The other side @. >Date: Wednesday, September 25, 2024 7:50 PM To: lobehub/lobe-chat _@**. _> Cc: zhangleijun111 _@.>, comment @. >Topic: Reply: [lobehub/lobe-chat] Document: Update local docker-compose auth to casdoor (PR #3855) Then I change localhost to IP for other machines in the intranet to access. It is normal to report the previous error Right?????The question is beyond the scope of maintenance and there is no answer. Please forgive me. No, it's normal. My understanding is that if localhost becomes the IP of this machine, other machines can achieve the production effect by accessing IP: 3210. This can also achieve the effect I want. The problem is that it doesn't work. Brother, I don't understand what you mean by a production environment, and I don't understand why you insist on changing localhost to LAN IP. There is no fundamental difference between the two. — Reply directly to this email, view it on GitHub, or unsubscribe. You received this message because you left a comment. Message ID:@_.*>

Other machines on your LAN? That doesn't affect it at all. Localhost can also be accessed normally.

If you look at the picture, it is mainly stuck in lobechat. Click to log in here ![0ad087534044f20cced964f0ff8d721](https://private-user-images.githubusercontent.com/169867372/370944511-1c9d8d0e-3d01-4c35-a1b4-72338ce6cfeb.png?jw t =eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoic mF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjczMzY2MzUs Im5iZiI6MTcyNzMzNjMzNSwicGF0aCI6Ii8xNjk4NjczNzIvMzcwOTQ0NTExLTFjOWQ4ZDBlLTNkMDEtNGMzNS1hMWI0LTcyMzM4Y2U2Y2ZlYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1 BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkyN lQwNzM4NTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00M2JmM2NhMmIxOTY4Y2UxMWM1YWUzZTdkZDFhOWRlZDk0YjBlMzk0NWFlZThlZTFjNzk0NjZkMjI2Y mFmMzY0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.8RDLdat6VCy-JdsXxSI6XUE3JIYmeiWRA4G9AP-R9g8)

[ ![80d07d4d5094b46b951c6cfb6924922](https://private-user-images.githubusercontent.com/169867372/370944618-b3dfa3ed-00b6-494b-86bf-10de322dba8a.png?jwt=eyJhbGciO iJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjczMzY2MzUsIm5iZiI 6MTcyNzMzNjMzNSwicGF0aCI6Ii8xNjk4NjczNzIvMzcwOTQ0NjE4LWIzZGZhM2VkLTAwYjYtNDk0Yi04NmJmLTEwZGUzMjJkYmE4YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1B Qy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkyNlQ wNzM4NTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04YWNhZDhhNzdiYmMyZDEzOTBkZDM5YTc3NGMwNjllMjAzNzUzMTEyZmMyM2IzM2RhYTM5Y2ViMjM1ZWE5MTBjJ lgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yU1a2R--geq6R42BHxzIAw9EXj1M1H8iD7dSWdrzSLM)] (url) One is a machine where lob is deployed, and the other is a machine on the intranet, so I asked if changing localhost to IP would solve this problem.

What service does your browser serve?

@BiFangKNT
Copy link
Contributor

就是我部署完成其他机器访问我这台机器的ip:3210可以正常认证和使用lobedatabase 发自我的iPhone ... ------------------ 原始------------------来自:彼方 @>日期:2024 年 9 月 25 日星期三晚上 7:50 收件人:lobehub/lobe-chat _@**_> 抄送: zhangleijun111 _@.>,评论 @>主题: 回复: [lobehub/lobe-chat] 文档: 更新本地 docker-compose auth 到 casdoor (PR #3855) 那我把localhost换成ip给内网其他机器访问,报前面这个错误是正常的吧?????问题超出维护范围,不作解答,请见谅。不是啊正常我的理解localhost全部变成部署这台机器的ip的话,其他机器通过访问ip:3210就能实现生产的效果了,这样也能实现我要到的效果了,问题是不行。哥们,我不理解你所谓的生产环境是什么环境,不理解你为什么执着于把localhost改成局域网ip。这俩没有本质上的不同啊。— 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您发表了评论。消息 ID:@_.*>

你局域网的其他机器?那根本不影响好吧,localhost也能正常访问

你看看图片主要是卡在lobechat点击登录这里 0ad087534044f20cced964f0ff8d721

80d07d4d5094b46b951c6cfb6924922 一个是部署lob的机器,另一台是内网的机器,所以我问localhost换成ip会不会可以解决这个问题

compose内部服务的localhost不等于主机的localhost啊。compose默认网络模式是bridge,默认本地网关是172.17.0.1,网段是/16,一般和你主机localhost不同的。

@lobehubbot
Copy link
Member

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


After I have completed the deployment, other machines can access my machine's IP: 3210, which can be authenticated and used lobedatabase. Sent from my iPhone ... -------------- ----Original------------------From: The other side @. >Date: Wednesday, September 25, 2024 7:50 PM To: lobehub/lobe-chat _@**. _> Cc: zhangleijun111 _@.>, comment @. >Topic: Reply: [lobehub/lobe-chat] Document: Update local docker-compose auth to casdoor (PR #3855) Then I change localhost to IP for other machines in the intranet to access. It is normal to report the previous error Right?????The question is beyond the scope of maintenance and there is no answer. Please forgive me. No, it's normal. My understanding is that if localhost becomes the IP of this machine, other machines can achieve the production effect by accessing IP: 3210. This can also achieve the effect I want. The problem is that it doesn't work. Brother, I don't understand what you mean by a production environment, and I don't understand why you insist on changing localhost to LAN IP. There is no fundamental difference between the two. — Reply directly to this email, view it on GitHub, or unsubscribe. You received this message because you left a comment. Message ID:@_.*>

Other machines on your LAN? That doesn't affect it at all. Localhost can also be accessed normally.

If you look at the picture, it is mainly stuck in lobechat. Click to log in here ![0ad087534044f20cced964f0ff8d721](https://private-user-images.githubusercontent.com/169867372/370944511-1c9d8d0e-3d01-4c35-a1b4-72338ce6cfeb.png?jw t =eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoic mF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjczMzY2MzUs Im5iZiI6MTcyNzMzNjMzNSwicGF0aCI6Ii8xNjk4NjczNzIvMzcwOTQ0NTExLTFjOWQ4ZDBlLTN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YmMyZDEzOTBkZDM5YTc3NGMwNjllMjAzNzUzMTEyZmMyM2IzM2RhYTM5Y2ViMjM1ZWE5MTBjJ lgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yU1a2R--geq6R42BHxzIAw9EXj1M1H8iD7dSWdrzSLM)] (url) One is a machine where lob is deployed, and the other is a machine on the intranet, so I asked if changing localhost to IP would solve this problem.

The localhost of compose's internal service is not equal to the localhost of the host. The default network mode of compose is bridge, the default local gateway is 172.17.0.1, and the network segment is /16, which is generally different from your host localhost.

@BiFangKNT
Copy link
Contributor

就是我部署完成其他机器访问我这台机器的ip:3210可以正常认证和使用lobedatabase 发自我的iPhone ... ------------------ 原始------------------来自:彼方 @>日期:2024 年 9 月 25 日星期三晚上 7:50 收件人:lobehub/lobe-chat _@**_> 抄送: zhangleijun111 _@.>,评论 @>主题: 回复: [lobehub/lobe-chat] 文档: 更新本地 docker-compose auth 到 casdoor (PR #3855) 那我把localhost换成ip给内网其他机器访问,报前面这个错误是正常的吧?????问题超出维护范围,不作解答,请见谅。不是啊正常我的理解localhost全部变成部署这台机器的ip的话,其他机器通过访问ip:3210就能实现生产的效果了,这样也能实现我要到的效果了,问题是不行。哥们,我不理解你所谓的生产环境是什么环境,不理解你为什么执着于把localhost改成局域网ip。这俩没有本质上的不同啊。— 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您发表了评论。消息 ID:@_.*>

你局域网的其他机器?那根本不影响好吧,localhost也能正常访问

你看看图片主要是卡在lobechat点击登录这里 0ad087534044f20cced964f0ff8d721

80d07d4d5094b46b951c6cfb6924922 一个是部署lob的机器,另一台是内网的机器,所以我问localhost换成ip会不会可以解决这个问题

你compose内部服务要不用localhost要不用ip,localhost是无脑设置,ip你还要分清楚是用容器内部ip还是宿主机ip,你看你这不混淆了吗?这是compose内容器间的互相访问设置,你外部要访问lobe,肯定得用映射到容器外端口,你也没告诉咱你的casdoor端口是怎么映射的,咱如何定位问题?你每次都这样,每次改动配置都不声明改动了哪里,从什么基础上改动的,前文在哪里,就好像把github当qq群了一样,很多热心大佬和你聊到一半就不说话了,大抵就是因为这个原因,你明白吗?

@lobehubbot
Copy link
Member

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


After I have completed the deployment, other machines can access my machine's IP: 3210, which can be authenticated and used lobedatabase. Sent from my iPhone ... -------------- ----Original------------------From: The other side @. >Date: Wednesday, September 25, 2024 7:50 PM To: lobehub/lobe-chat _@**. _> Cc: zhangleijun111 _@.>, comment @. >Topic: Reply: [lobehub/lobe-chat] Document: Update local docker-compose auth to casdoor (PR #3855) Then I change localhost to IP for other machines in the intranet to access. It is normal to report the previous error Right?????The question is beyond the scope of maintenance and there is no answer. Please forgive me. No, it's normal. My understanding is that if localhost becomes the IP of this machine, other machines can achieve the production effect by accessing IP: 3210. This can also achieve the effect I want. The problem is that it doesn't work. Brother, I don't understand what you mean by a production environment, and I don't understand why you insist on changing localhost to LAN IP. There is no fundamental difference between the two. — Reply directly to this email, view it on GitHub, or unsubscribe. You received this message because you left a comment. Message ID:@_.*>

Other machines on your LAN? That doesn't affect it at all. Localhost can also be accessed normally.

If you look at the picture, it is mainly stuck in lobechat. Click to log in here ![0ad087534044f20cced964f0ff8d721](https://private-user-images.githubusercontent.com/169867372/370944511-1c9d8d0e-3d01-4c35-a1b4-72338ce6cfeb.png?jw t =eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoic mF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjczMzY2MzUs Im5iZiI6MTcyNzMzNjMzNSwicGF0aCI6Ii8xNjk4NjczNzIvMzcwOTQ0NTExLTFjOWQ4ZDBlLTNkMDEtNGMzNS1hMWI0LTcyMzM4Y2U2Y2ZlYi5wbmc_WC1BbXotQWxnb3Jp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ViMjM1ZWE5MTBjJ lgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yU1a2R--geq6R42BHxzIAw9EXj1M1H8iD7dSWdrzSLM)] (url) One is a machine where lob is deployed, and the other is a machine on the intranet, so I asked if changing localhost to IP would solve this problem.

Do you need to use localhost or IP for the internal services of your compose? Localhost is a brainless setting. For IP, you also need to distinguish whether to use the internal IP of the container or the IP of the host. Do you think you are not confused? This is the mutual access setting between containers in compose. If you want to access the lobe externally, you must map it to the port outside the container. You didn't tell us how your casdoor port is mapped. How can we locate the problem? You do this every time. Every time you change the configuration, you don’t declare what has been changed, what the basis for the change is, and where the previous article is. It’s like treating Github as a QQ group. Many enthusiastic people will stop talking to you halfway through the conversation. Yes, probably because of this reason, do you understand?

@zhangleijun111
Copy link

就是我部署完成其他机器访问我这台机器的ip:3210可以正常认证和使用lobedatabase 发自我的iPhone ... ------------------ 原始------------------来自:彼方 @>日期:2024 年 9 月 25 日星期三晚上 7:50 收件人:lobehub/lobe-chat _@**_> 抄送: zhangleijun111 _@.>,评论 @>主题: 回复: [lobehub/lobe-chat] 文档: 更新本地 docker-compose auth 到 casdoor (PR #3855) 那我把localhost换成ip给内网其他机器访问,报前面这个错误是正常的吧?????问题超出维护范围,不作解答,请见谅。不是啊正常我的理解localhost全部变成部署这台机器的ip的话,其他机器通过访问ip:3210就能实现生产的效果了,这样也能实现我要到的效果了,问题是不行。哥们,我不理解你所谓的生产环境是什么环境,不理解你为什么执着于把localhost改成局域网ip。这俩没有本质上的不同啊。— 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您发表了评论。消息 ID:@_.*>

你局域网的其他机器?那根本不影响好吧,localhost也能正常访问

你看看图片主要是卡在lobechat点击登录这里 0ad087534044f20cced964f0ff8d721
80d07d4d5094b46b951c6cfb6924922 一个是部署lob的机器,另一台是内网的机器,所以我问localhost换成ip会不会可以解决这个问题

你compose内部服务要不用localhost要不用ip,localhost是无脑设置,ip你还要分清楚是用容器内部ip还是宿主机ip,你看你这不混淆了吗?这是compose内容器间的互相访问设置,你外部要访问lobe,肯定得用映射到容器外端口,你也没告诉咱你的casdoor端口是怎么映射的,咱如何定位问题?你每次都这样,每次改动配置都不声明改动了哪里,从什么基础上改动的,前文在哪里,就好像把github当qq群了一样,很多热心大佬和你聊到一半就不说话了,大抵就是因为这个原因,你明白吗?

我已经搞定了啊兄弟,没有你想的这么复杂的,是你吧问题搞的复杂化了不存在端口映射容器互通哈哈哈哈,另外现在excel是还不可以分块的是吧

@lobehubbot
Copy link
Member

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


After I have completed the deployment, other machines can access my machine's IP: 3210, which can be authenticated and used lobedatabase normally. Sent from my iPhone ... ------------- -----Original------------------From: The other side_@. >Date: Wednesday, September 25, 2024 7:50 PM To: lobehub/lobe-chat _@**. **> Cc: zhangleijun111 @.>, comment _@**. >Topic: Reply: [lobehub/lobe-chat] Document: Update local docker-compose auth to casdoor (PR #3855) Then I change localhost to IP for other machines in the intranet to access. It is normal to report the previous error Right?????The question is beyond the scope of maintenance and there is no answer. Please forgive me. No, it's normal. My understanding is that if localhost becomes the IP of this machine, other machines can achieve the production effect by accessing IP: 3210. This can also achieve the effect I want. The problem is that it doesn't work. Brother, I don't understand what you mean by a production environment, and I don't understand why you insist on changing localhost to LAN IP. There is no fundamental difference between the two. — Reply directly to this email, view it on GitHub, or unsubscribe. You received this message because you left a comment. Message ID:@_.*>

Other machines on your LAN? That doesn't affect it at all. Localhost can also be accessed normally.

If you look at the picture, it is mainly stuck in lobechat. Click to log in here ![0ad087534044f20cced964f0ff8d721](https://private-user-images.githubusercontent.com/169867372/370944511-1c9d8d0e-3d01-4c35-a1b4-72338ce6cfeb.png? jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1Yn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NhZDhhNzdiYmMyZDEzOTBkZDM5YTc3NGMwNjllMjAzNzUzMTEyZmMyM2IzM2RhYTM5Y2ViMjM1ZWE5MTBj JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yU1a2R--geq6R42BHxzIAw9EXj1M1H8iD7dSWdrzSLM) One is a machine where lob is deployed, and the other is a machine on the intranet, so I asked if changing localhost to IP would solve this problem.

Do you need to use localhost or IP for the internal services of your compose? Localhost is a brainless setting. For IP, you also need to distinguish whether to use the internal IP of the container or the IP of the host. Do you think you are not confused? This is the mutual access setting between containers in compose. If you want to access the lobe externally, you must map it to the port outside the container. You didn't tell us how your casdoor port is mapped. How can we locate the problem? You do this every time. Every time you change the configuration, you don’t declare what has been changed, what the basis for the change is, and where the previous article is. It’s like treating Github as a QQ group. Many enthusiastic people will stop talking to you halfway through the conversation. Yes, probably because of this reason, do you understand?

I've got it done, brother. It's not as complicated as you think. It's you who complicated the problem. There is no port mapping container interoperability, hahahaha. In addition, Excel can't be divided into chunks now, right?

@BiFangKNT
Copy link
Contributor

就是我部署完成其他机器访问我这台机器的ip:3210可以正常认证和使用lobedatabase 发自我的iPhone ... ------------------ 原始------------------来自:彼方 @>日期:2024 年 9 月 25 日星期三晚上 7:50 收件人:lobehub/lobe-chat _@**_> 抄送: zhangleijun111 _@.>,评论 @>主题: 回复: [lobehub/lobe-chat] 文档: 更新本地 docker-compose auth 到 casdoor (PR #3855) 那我把localhost换成ip给内网其他机器访问,报前面这个错误是正常的吧?????问题超出维护范围,不作解答,请见谅。不是啊正常我的理解localhost全部变成部署这台机器的ip的话,其他机器通过访问ip:3210就能实现生产的效果了,这样也能实现我要到的效果了,问题是不行。哥们,我不理解你所谓的生产环境是什么环境,不理解你为什么执着于把localhost改成局域网ip。这俩没有本质上的不同啊。— 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您发表了评论。消息 ID:@_.*>

你局域网的其他机器?那根本不影响好吧,localhost也能正常访问

你看看图片主要是卡在lobechat点击登录这里 0ad087534044f20cced964f0ff8d721
80d07d4d5094b46b951c6cfb6924922 一个是部署lob的机器,另一台是内网的机器,所以我问localhost换成ip会不会可以解决这个问题

你compose内部服务要不用localhost要不用ip,localhost是无脑设置,ip你还要分清楚是用容器内部ip还是宿主机ip,你看你这不混淆了吗?这是compose内容器间的互相访问设置,你外部要访问lobe,肯定得用映射到容器外端口,你也没告诉咱你的casdoor端口是怎么映射的,咱如何定位问题?你每次都这样,每次改动配置都不声明改动了哪里,从什么基础上改动的,前文在哪里,就好像把github当qq群了一样,很多热心大佬和你聊到一半就不说话了,大抵就是因为这个原因,你明白吗?

我已经搞定了啊兄弟,没有你想的这么复杂的,是你吧问题搞的复杂化了不存在端口映射容器互通哈哈哈哈,另外现在excel是还不可以分块的是吧

所以你到底是怎么搞定的呢?问题出在哪呢?我也好奇啊。另外咱哪可能一上来就说中问题啊,咱讲的不也是推测吗,咱又不是项目制作组成员,咱只是一个路过的热心网友罢了

@lobehubbot
Copy link
Member

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


After I have completed the deployment, other machines can access my machine's IP: 3210, which can be authenticated and used lobedatabase normally. Sent from my iPhone ... ------------- ------Original------------------From: The other side_@. >Date: Wednesday, September 25, 2024 7:50 PM To: lobehub/lobe-chat _@**. **> Cc: zhangleijun111 @.>, comment _@**. >Topic: Reply: [lobehub/lobe-chat] Document: Update local docker-compose auth to casdoor (PR #3855) Then I change localhost to IP for other machines in the intranet to access. It is normal to report the previous error Right?????The question is beyond the scope of maintenance and there is no answer. Please forgive me. No, it's normal. My understanding is that if localhost becomes the IP of this machine, other machines can achieve the production effect by accessing IP: 3210. This can also achieve the effect I want. The problem is that it doesn't work. Brother, I don't understand what you mean by a production environment, and I don't understand why you insist on changing localhost to LAN IP. There is no fundamental difference between the two. — Reply directly to this email, view it on GitHub, or unsubscribe. You received this message because you left a comment. Message ID:@_.*>

Other machines on your LAN? That doesn't affect it at all. Localhost can also be accessed normally.

If you look at the picture, it is mainly stuck in lobechat. Click to log in here ![0ad087534044f20cced964f0ff8d721](https://private-user-images.githubusercontent.com/169867372/370944511-1c9d8d0e-3d01-4c35-a1b4-72338ce6cfeb.png ?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjczMz Y2MzUsIm5iZiI6MTcyNzMzNjMzNSwicGF0aCI6Ii8xNjk4NjczNzIvMzcwOTQ0NTExLTFjOWQ4ZDBlLTNkMDEtNGMzNS1hMWI0LTcyMzM4Y2U2Y2ZlYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXU zQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yM DI0MDkyNlQwNzM4NTVoltage jI2YmFmMzY0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.8RDLdat6VCy-JdsXxSI6XUE3JIYmeiWRA4G9AP-R9g8)
![80d07d4d5094b46b951c6cfb6924922](https://private-user-images.githubusercontent.com/169867372/370944618-b3dfa3ed-00b6-494b-86bf-10de322dba8a.png?jwt=eyJhbG ciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3Lmd pdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjczMzY2MzUsIm5iZ iI6MTcyNzMzNjMzNSwicGF0aCI6Ii8xNjk4NjczNzIvMzcwOTQ0NjE4LWIzZGZhM2VkLTAwYjYtNDk0Yi04NmJmLTEwZGUzMjJkYmE4YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1 BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkyNl Question lgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yU1a2R--geq6R42BHxzIAw9EXj1M1H8iD7dSWdrzSLM ) One is a machine where lob is deployed, and the other is a machine on the intranet, so I asked if changing localhost to IP would solve this problem.

Do you need to use localhost or IP for the internal services of your compose? Localhost is a brainless setting. For IP, you also need to distinguish whether to use the internal IP of the container or the IP of the host. Do you think you are not confused? This is the mutual access setting between containers in compose. If you want to access the lobe externally, you must map it to the port outside the container. You didn't tell us how your casdoor port is mapped. How can we locate the problem? You do this every time. Every time you change the configuration, you don’t declare what has been changed, what the basis for the change is, and where the previous article is. It’s like treating Github as a QQ group. Many enthusiastic people will stop talking to you halfway through the conversation. Yes, probably because of this reason, do you understand?

I've got it done, brother. It's not as complicated as you think. It's you who complicated the problem. There is no port mapping container interoperability, hahahaha. In addition, excel can't be divided into chunks now, right?

So how do you do it? What's the problem? I'm curious too. Besides, how could we possibly hit the mark right from the start? Aren’t we talking about speculation? We’re not a member of the project production team, we’re just an enthusiastic netizen passing by.

@zhangleijun111
Copy link

就是我部署完成其他机器访问我这台机器的ip:3210可以正常认证和使用lobedatabase 发自我的iPhone ... ------------------ 原始------------------来自:彼方 @>日期:2024 年 9 月 25 日星期三晚上 7:50 收件人:lobehub/lobe-chat _@**_> 抄送: zhangleijun111 _@.>,评论 @>主题: 回复: [lobehub/lobe-chat] 文档: 更新本地 docker-compose auth 到 casdoor (PR #3855) 那我把localhost换成ip给内网其他机器访问,报前面这个错误是正常的吧?????问题超出维护范围,不作解答,请见谅。不是啊正常我的理解localhost全部变成部署这台机器的ip的话,其他机器通过访问ip:3210就能实现生产的效果了,这样也能实现我要到的效果了,问题是不行。哥们,我不理解你所谓的生产环境是什么环境,不理解你为什么执着于把localhost改成局域网ip。这俩没有本质上的不同啊。— 直接回复此电子邮件,在 GitHub 上查看,或取消订阅。您收到此消息是因为您发表了评论。消息 ID:@_.*>

你局域网的其他机器?那根本不影响好吧,localhost也能正常访问

你看看图片主要是卡在lobechat点击登录这里 0ad087534044f20cced964f0ff8d721 80d07d4d5094b46b951c6cfb6924922 一个是部署lob的机器,另一台是内网的机器,所以我问localhost换成ip会不会可以解决这个问题

你compose内部服务要不用localhost要不用ip,localhost是无脑设置,ip你还要分清楚是用容器内部ip还是宿主机ip,你看你这不混淆了吗?这是compose内容器间的互相访问设置,你外部要访问lobe,肯定得用映射到容器外端口,你也没告诉咱你的casdoor端口是怎么映射的,咱如何定位问题?你每次都这样,每次改动配置都不声明改动了哪里,从什么基础上改动的,前文在哪里,就好像把github当qq群了一样,很多热心大佬和你聊到一半就不说话了,大抵就是因为这个原因,你明白吗?

我已经搞定了啊兄弟,没有你想的这么复杂的,是你吧问题搞的复杂化了不存在端口映射容器互通哈哈哈哈,另外现在excel是还不可以分块的是吧

所以你到底是怎么搞定的呢?问题出在哪呢?我也好奇啊。另外咱哪可能一上来就说中问题啊,咱讲的不也是推测吗,咱又不是项目制作组成员,咱只是一个路过的热心网友罢了

我就是全部把localhost换了ip重新部署了一遍就好了,不存在什么容器互通的问题其实,excel现在还不支持是吧???

@lobehubbot
Copy link
Member

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


After I have completed the deployment, other machines can access my machine's IP: 3210, which can be authenticated and used lobedatabase normally. Sent from my iPhone ... ----------- -------Original------------------From: The other side_@. >Date: Wednesday, September 25, 2024 7:50 PM To: lobehub/lobe-chat _@**. **> Cc: zhangleijun111 @.>, comment _@**. >Topic: Reply: [lobehub/lobe-chat] Document: Update local docker-compose auth to casdoor (PR #3855) Then I change localhost to IP for other machines in the intranet to access. It is normal to report the previous error Right?????The question is beyond the scope of maintenance and there is no answer. Please forgive me. No, it's normal. My understanding is that if localhost becomes the IP of this machine, other machines can achieve the production effect by accessing IP: 3210. This can also achieve the effect I want. The problem is that it doesn't work. Brother, I don't understand what you call a production environment, and I don't understand why you insist on changing localhost to LAN IP. There is no fundamental difference between the two. — Reply directly to this email, view it on GitHub, or unsubscribe. You received this message because you left a comment. Message ID:@_.*>

Other machines on your LAN? That doesn't affect it at all. Localhost can also be accessed normally.

If you look at the picture, it is mainly stuck in lobechat. Click to log in here ![0ad087534044f20cced964f0ff8d721](https://private-user-images.githubusercontent.com/169867372/370944511-1c9d8d0e-3d01-4c35-a1b4-72338ce6cfeb. png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mjcz MzY2MzUsIm5iZiI6MTcyNzMzNjMzNSwicGF0aCI6Ii8xNjk4NjczNzIvMzcwOTQ0NTExLTFjOWQ4ZDBlLTNkMDEtNGMzNS1hMWI0LTcyMzM4Y2U2Y2ZlYi5wbmc_WC1BbXotQWxnb3Jpd GhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF 0ZT0yMDI0MDkyNlQwNzM4NTVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZ T00M2JmM2NhMmIxOTY4Y2UxMWM1YWUzZTdkZDFhOWRlZDk0YjBlMzk0NWFlZThlZTFjNzk 0NjZkMjI2YmFmMzY0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.8RDLdat6VCy-JdsXxSI6XUE3JIYmeiWRA4G9AP-R9g8) ![80d07d4d5094b46b951c6cfb692492 2](https://private-user-images.githubusercontent.com/169867372/370944618-b3dfa3ed-00b6-494b-86bf -10de322dba8a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUi LCJleHAiOjE3MjczMzY2MzUsIm5iZiI6MTcyNzMzNjMzNSwicGF0aCI6Ii8xNjk4NjczNzIvMzcwOTQ0NjE4LWIzZGZhM2VkLTAwYjYtNDk0Yi04NmJmLTEwZGUzMjJkYmE4YS5wbmc_ WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTI2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3J lcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkyNlQwNzM4NTVocal ZmMyM2IzM2RhYTM5Y2ViMjM1ZWE5MTBjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.yU1a2R--geq6R42BHxzIAw9EXj1M1H8iD7dSWdrzSLM) One is the machine where lob is deployed, and the other is the machine on the intranet, so I asked localhost Will changing to IP solve this problem? question

Do you need to use localhost or IP for the internal services of your compose? Localhost is a brainless setting. For IP, you also need to distinguish whether to use the internal IP of the container or the IP of the host. Do you think you are not confused? This is the mutual access setting between containers in compose. If you want to access the lobe externally, you must map it to the port outside the container. You didn't tell us how your casdoor port is mapped. How can we locate the problem? You do this every time. Every time you change the configuration, you don’t declare what has been changed, what the basis for the change is, and where the previous article is. It’s like treating Github as a QQ group. Many enthusiastic people will stop talking to you halfway through the conversation. Yes, probably because of this reason, do you understand?

I've got it done, brother. It's not as complicated as you think. It's you who complicated the problem. There is no port mapping container interoperability, hahahaha. In addition, Excel can't be divided into chunks now, right?

So how did you do it? What's the problem? I'm curious too. Besides, how could we possibly hit the mark right from the start? Aren’t we talking about speculation? We’re not a member of the project production team, we’re just an enthusiastic netizen passing by.

I just changed the localhost IP and redeployed it. There is no problem with container interoperability. In fact, Excel doesn’t support it yet, right? ? ?

@BiFangKNT
Copy link
Contributor

@zhangleijun111

我就是全部把localhost换了ip重新部署了一遍就好了,不存在什么容器互通的问题其实

那么问题就出在你对ip设置的疏漏或误解混淆上了。

excel现在还不支持是吧???

是的,目前测过的格式中,只有txt和ts格式支持
image

@lobehubbot
Copy link
Member

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


@zhangleijun111

I just changed the localhost IP and redeployed everything. There is no problem with container interoperability. In fact,

Then the problem lies in your omission or misunderstanding of the IP settings.

Excel doesn’t support it yet, right? ? ?

Yes, among the formats tested so far, only txt and ts formats are supported.
image

@BiFangKNT
Copy link
Contributor

@zhangleijun111 建议关注这个讨论 #3550

@lobehubbot
Copy link
Member

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


@zhangleijun111 recommends following this discussion #3550

@zhangleijun111
Copy link

zhangleijun111 commented Sep 26, 2024 via email

@cy948 cy948 deleted the run/casdoor branch October 12, 2024 11:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📝 Documentation Improvements or additions to documentation | 文档问题 lgtm This PR has been approved by a maintainer released size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Request] 除了logto,还有什么身份认证系统可以本地化部署嘛
6 participants