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

能否给web控制界面加个访问密码? #47

Closed
wxxcarl opened this issue May 11, 2024 · 3 comments
Closed

能否给web控制界面加个访问密码? #47

wxxcarl opened this issue May 11, 2024 · 3 comments
Labels
新功能 可能会实现的功能

Comments

@wxxcarl
Copy link

wxxcarl commented May 11, 2024

因为我是公网域名访问的,现在如果知道了域名或扫描到ip,是不是就可以直接控制了?

@hanxi hanxi added the 新功能 可能会实现的功能 label May 11, 2024
@hanxi
Copy link
Owner

hanxi commented May 11, 2024

优先级不高 ,建议先用防火墙或者 nginx 配个 basic password 来解决。

@hanxi hanxi closed this as completed in b2edaf4 Jun 23, 2024
@hanxi
Copy link
Owner

hanxi commented Jun 23, 2024

如下设置3个环境变量可以实现基础的访问密码功能,密码为明文传输,请在网络安全的情况下使用。

export XIAOMUSIC_DISABLE_HTTPAUTH='false'
export XIAOMUSIC_HTTPAUTH_USERNAME='admin'
export XIAOMUSIC_HTTPAUTH_PASSWORD='123456'

@wxxcarl
Copy link
Author

wxxcarl commented Jun 24, 2024

66666,感谢大佬

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
新功能 可能会实现的功能
Projects
None yet
Development

No branches or pull requests

2 participants