GZTimeWalker / GZCTF

The GZ::CTF project, an open source CTF platform.
https://docs.ctf.gzti.me/
GNU Affero General Public License v3.0
733 stars 83 forks source link

通过 docker 部署,后面添加的cloudflare验证码配置未被录入redis #306

Closed azio7 closed 2 weeks ago

azio7 commented 2 weeks ago

Before submitting / 提交之前

What version of GZCTF are you using? / 您使用的 GZCTF 版本是什么?

image: gztime/gzctf:latest

What is the commit hash for your build? (in About page and backend logs) / 您所使用的构建的提交哈希是什么?(在关于页面和后端日志中)

8122B5

In which browsers you can reproduce the issue? / 您在哪些浏览器中可以重现此问题?

Chrome

Describe the bug / 描述 bug

docker部署成功后,修改配置文件添加cloudflare验证码修改设置,尝试docker restart 或者 docker compose down 和docker compose up -d 后/api/captcha 返回none。最终在删除redis存放在文件系统的db时重新启动才能部署成功

Expected behavior / 期望行为

验证码相关配置应当优先使用配置文件的设置

Possible fix / 可能的修复

启动时先检查配置文件是否有新记录

GZTimeWalker commented 2 weeks ago

fix in https://github.com/GZTimeWalker/GZCTF/commit/e669398026488d8cb9ba79908684a4aebbcf29f8