-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
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
Conversation
@cy948 is attempting to deploy a commit to the LobeHub Pro Team on Vercel. A member of the Team first needs to authorize it. |
👍 @cy948 Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
这个方案是本地体验还是生产也可以用? |
Is this solution a local experience or can it also be used in production? |
@arvinxx 推荐本地体验,用于生产则需要更改密钥。但改密钥又会回到像logto那样复杂的配置过程,还是作为本地体验版本好点? |
@arvinxx recommends local experience, for production use you need to change the key. |
@cy948 那就直接替换本地那个 logto 的文件夹吧。或者 logto 的改个别的名字,local-logto |
@cy948 Then just replace the local logto folder directly. Or change logto to another name, local-logto |
|
~~After 20 hours of sleep, come to work! ~~
|
docker compose up -d 现在也启动不起来,lobe 报错 Error: [NextAuth] provider generic-oidc is not supported 是由于相关 PR 没有合并触发 docker 的相应构建吗 |
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? |
@zhuozhiyongde 你看看是不是本地的 lobechat-database 镜像没有更新? |
@zhuozhiyongde Could you please check if the local lobechat-database image has not been updated? |
我去,睡傻了 |
I'm going to sleep like crazy |
|
|
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. |
好的谢谢
发自我的iPhone
…------------------ Original ------------------
From: Yao Cai ***@***.***>
Date: Wed,Sep 25,2024 5:23 PM
To: lobehub/lobe-chat ***@***.***>
Cc: zhangleijun111 ***@***.***>, Comment ***@***.***>
Subject: Re: [lobehub/lobe-chat] �� docs: update local docker-compose auth to casdoor (PR #3855)
另外上casdoor的目的不就是因为logto生产部署很麻烦吗,结果你说生产居然不行。。。。
我的意思是当前pr下的本地的方案不能直接用于生产,生产方案请自行探索,不进行相关问题解答。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
哥们,我不理解你所谓的生产环境是什么环境,不理解你为什么执着于把localhost改成局域网ip。这俩没有本质上的不同啊。 |
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. |
就是我部署完成其他机器访问我这台机器的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访问 |
我明天把截图给你看吧兄弟
发自我的iPhone
…------------------ Original ------------------
From: 彼方 ***@***.***>
Date: Wed,Sep 25,2024 8:04 PM
To: lobehub/lobe-chat ***@***.***>
Cc: zhangleijun111 ***@***.***>, Comment ***@***.***>
Subject: Re: [lobehub/lobe-chat] �� docs: update local docker-compose auth to casdoor (PR #3855)
就是我部署完成其他机器访问我这台机器的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也能正常访问
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
|
If you look at the picture, it is mainly stuck in lobechat. Click to log in here.
|
已经搞定了谢谢你 |
Already done thank you |
你这浏览器是哪里的服务 |
What service does your browser serve? |
compose内部服务的localhost不等于主机的localhost啊。compose默认网络模式是bridge,默认本地网关是172.17.0.1,网段是/16,一般和你主机localhost不同的。 |
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. |
你compose内部服务要不用localhost要不用ip,localhost是无脑设置,ip你还要分清楚是用容器内部ip还是宿主机ip,你看你这不混淆了吗?这是compose内容器间的互相访问设置,你外部要访问lobe,肯定得用映射到容器外端口,你也没告诉咱你的casdoor端口是怎么映射的,咱如何定位问题?你每次都这样,每次改动配置都不声明改动了哪里,从什么基础上改动的,前文在哪里,就好像把github当qq群了一样,很多热心大佬和你聊到一半就不说话了,大抵就是因为这个原因,你明白吗? |
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? |
我已经搞定了啊兄弟,没有你想的这么复杂的,是你吧问题搞的复杂化了不存在端口映射容器互通哈哈哈哈,另外现在excel是还不可以分块的是吧 |
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. |
我就是全部把localhost换了ip重新部署了一遍就好了,不存在什么容器互通的问题其实,excel现在还不支持是吧??? |
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? ? ? |
那么问题就出在你对ip设置的疏漏或误解混淆上了。
|
@zhangleijun111 建议关注这个讨论 #3550 |
@zhangleijun111 recommends following this discussion #3550 |
好滴大问题认证解决了,excel文件分块这些东西以后等后续lobe更新会好的,谢谢啦
发自我的iPhone
…------------------ Original ------------------
From: 彼方 ***@***.***>
Date: Thu,Sep 26,2024 7:20 PM
To: lobehub/lobe-chat ***@***.***>
Cc: zhangleijun111 ***@***.***>, Mention ***@***.***>
Subject: Re: [lobehub/lobe-chat] �� docs: update local docker-compose auth to casdoor (PR #3855)
@zhangleijun111 建议关注这个讨论 #3550
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
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
中文
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
.env
init_data.json
:s3_data
:env.example
;