-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Set the env SIYUAN_ACCESS_AUTH_CODE_BYPASS=true
to skip checking access auth code when deploying Docker
#9709
Comments
或者可以在部署时将登录认证码这一要求去掉,反正用户也可以自己弄basic认证? |
关联 https://ld246.com/article/1700589669390 这样吧,我们通过环境变量来指定是否跳过 Docker 部署启动的授权码检查,如果设置为 |
SIYUAN_ACCESS_AUTH_CODE_BYPASS=true
to skip checking access auth code when deploying Docker
…access auth code when deploying Docker Fix #9709
…access auth code when deploying Docker Fix #9709
@88250 是不是还应更改一下 |
@Zuoqiu-Yingyi 不用改吧,加了这个环境变量就允许 访问授权码 为空时启动 docker 容器了。 |
能启动, 但是使用时无法通过鉴权 |
嗯,是有这个问题,稍后合并。 |
SIYUAN_ACCESS_AUTH_CODE_BYPASS=true
to skip checking access auth code when deploying DockerSIYUAN_ACCESS_AUTH_CODE_BYPASS=true
to skip checking access auth code when deploying Docker
如何不开启授权码呢,就是想创建一个无需密码可以访问的空间应该怎么做? |
也是通过设置环境变量 |
我的 docker compose 设置了 SIYUAN_ACCESS_AUTH_CODE_BYPASS=true , 但是访问依然需要授权码。另外授权码只能在docker 启动的时候修改吗? 我在设置中搜索关键词“授权码”找不到相关设置
日志中可以看到
|
看下 conf.json 中
是的。 |
哦对, conf.json 中有密码 |
但我删除 conf.json 中的密码重启容器的时候, conf.json 的密码会重新加载回来。只能删除原来的容器,新建一个,改动才有效? |
如何实现自动登录?
Docker 部署时可通过环境变量
SIYUAN_ACCESS_AUTH_CODE_BYPASS=true
跳过检查In what scenarios do you need this feature?
之前旧版思源笔记部署后,我可以在nginx添加basic认证来实现安全使用,同时可以用Nativefier(或Pake等工具)将网站打包成应用,并且在打包成应用时(通过加--basic-auth-password参数)可以将basic认证加上,从而实现双击应用直接免输入密码直接打开笔记。
现在新版思源笔记集成了登录验证码,按说是好事,但现在用Nativefier将网站打包成应用,就必须再输入登录码了。
如何实现双击本地应用免输入登录码打开呢?
Describe the optimal solution
是否可以在网站链接后附加登录密码,如 https://xxx.com?authCode=xxx,就可以直接打开?
Describe the candidate solution
No response
Other information
No response
The text was updated successfully, but these errors were encountered: