Deploy
安装 docker、docker compose
Clone the CTFd repository with git clone https://github.com/CTFd/CTFd.git
Modify the docker-compose.yml
:
1 | environment: |
在 CTFd/config.py
中修改 DEBUG = False
Run docker-compose up -d
You should now be able to access CTFd at http://localhost:8000
Mail API(不绑定信用卡,只能给5个指定用户发送邮件)
Mail Server
这里有一个小插曲
由于不太了解 TLS ,导致此处调试了很久才成功发送了 email
一致证书处理:与SSLv3.0不同,TLS试图指定必须在TLS之间实现交换的证书类型
最后正确的填写
走过的坑
第一个就是前面说的 email,第二就是 all.css
fonts.dev.css 和 fonts.min.css 引用了外网的 css。导致页面加载了二十多秒
1 | find / -name fonts.dev.css |
Link
https://blog.csdn.net/weixin_43880435/article/details/107339592