[GH-ISSUE #100] 如何保证bark自建服务器的安全性呢?岂不是人人都可以用别人建的服务器? #67

Closed
opened 2026-03-03 11:55:49 +03:00 by kerem · 6 comments
Owner

Originally created by @wlwllbj on GitHub (Dec 6, 2021).
Original GitHub issue: https://github.com/Finb/bark-server/issues/100

rt,客户端注册只需要添加ip,这样别人猜到你的服务器地址,不就可以免费用了吗?

Originally created by @wlwllbj on GitHub (Dec 6, 2021). Original GitHub issue: https://github.com/Finb/bark-server/issues/100 rt,客户端注册只需要添加ip,这样别人猜到你的服务器地址,不就可以免费用了吗?
kerem closed this issue 2026-03-03 11:55:50 +03:00
Author
Owner

@mritd commented on GitHub (Dec 6, 2021):

你可以在启动时设置用户名和密码来启用 Basic Auth 认证

https://github.com/Finb/bark-server/blob/master/route_auth.go

<!-- gh-comment-id:986586564 --> @mritd commented on GitHub (Dec 6, 2021): 你可以在启动时设置用户名和密码来启用 Basic Auth 认证 https://github.com/Finb/bark-server/blob/master/route_auth.go
Author
Owner

@wlwllbj commented on GitHub (Dec 6, 2021):

不好意思,新手
我在docker中运行的怎么设置账号密码?需要重新编译吗?
感谢

<!-- gh-comment-id:986691964 --> @wlwllbj commented on GitHub (Dec 6, 2021): 不好意思,新手 我在docker中运行的怎么设置账号密码?需要重新编译吗? 感谢
Author
Owner

@mritd commented on GitHub (Dec 7, 2021):

docker 的运行参数 加上选项就行:

docker run -p 8080:8080 finab/bark-server bark-server --user admin --password your_passwd

具体的 docker 参数,例如如何保持后台运行以及文件挂载请参考 docker 文档。

<!-- gh-comment-id:987518559 --> @mritd commented on GitHub (Dec 7, 2021): docker 的运行参数 加上选项就行: ```sh docker run -p 8080:8080 finab/bark-server bark-server --user admin --password your_passwd ``` 具体的 docker 参数,例如如何保持后台运行以及文件挂载请参考 docker 文档。
Author
Owner

@wlwllbj commented on GitHub (Dec 7, 2021):

客户端 添加私有服务器哪里怎么填写呢?现在发送消息 提示 i am a teapot

<!-- gh-comment-id:987797764 --> @wlwllbj commented on GitHub (Dec 7, 2021): 客户端 添加私有服务器哪里怎么填写呢?现在发送消息 提示 i am a teapot
Author
Owner

@Finb commented on GitHub (Dec 8, 2021):

客户端直接填对应的服务器地址,和没加验证的普通服务器一样。

发送时需要加上basic auth,具体怎么操作网上搜搜教程

<!-- gh-comment-id:988439949 --> @Finb commented on GitHub (Dec 8, 2021): 客户端直接填对应的服务器地址,和没加验证的普通服务器一样。 发送时需要加上basic auth,具体怎么操作网上搜搜教程
Author
Owner

@anwen-anyi commented on GitHub (Sep 18, 2025):

你可以在启动时设置用户名和密码来启用 Basic Auth 认证

https://github.com/Finb/bark-server/blob/master/route_auth.go

😹 哎妈呀..回来考古...之前部署来着然后搬家重新部署..找这个方法可算是一顿好找哈哈 找了挺久 就是想不起在哪儿来着,建议开发者大大把这个链接或者文章加进使用说明 哈哈

<!-- gh-comment-id:3305221340 --> @anwen-anyi commented on GitHub (Sep 18, 2025): > 你可以在启动时设置用户名和密码来启用 Basic Auth 认证 > > https://github.com/Finb/bark-server/blob/master/route_auth.go 😹 哎妈呀..回来考古...之前部署来着然后搬家重新部署..找这个方法可算是一顿好找哈哈 找了挺久 就是想不起在哪儿来着,建议开发者大大把这个链接或者文章加进使用说明 哈哈
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/bark-server#67
No description provided.