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

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

Closed
wlwllbj opened this issue Dec 6, 2021 · 5 comments

Comments

@wlwllbj
Copy link

wlwllbj commented Dec 6, 2021

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

@mritd
Copy link
Collaborator

mritd commented Dec 6, 2021

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

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

@wlwllbj
Copy link
Author

wlwllbj commented Dec 6, 2021

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

@mritd
Copy link
Collaborator

mritd commented Dec 7, 2021

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

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

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

@wlwllbj
Copy link
Author

wlwllbj commented Dec 7, 2021

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

@Finb
Copy link
Owner

Finb commented Dec 8, 2021

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants