GZTimeWalker / GZCTF

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

sendemail error #53

Closed now4yreal closed 1 year ago

now4yreal commented 1 year ago

师傅好,很喜欢您团队做的平台

在搭建过程中,我运行了一下命令: docker pull ghcr.io/gztimewalker/gzctf/gzctf:latest docker-compose up

平台运行正常,但是在邮件验证时,报了下面的错误: image

您看怎么解决

我的平台是ubuntu20.04LTS

now4yreal commented 1 year ago

我的配置文件:

{
    "AllowedHosts": "*",
    "ConnectionStrings": {
      "Database": "Host=db:5432;Database=gzctf;Username=postgres;Password=Fyjd0HtrL00QD555W1b6WLKbLl62cHT0",
    },
    "Logging": {
      "LogLevel": {
        "Default": "Information",
        "Microsoft": "Warning",
        "Microsoft.Hosting.Lifetime": "Information"
      }
    },
    "EmailConfig": {
      "SendMailAddress": "",
      "UserName": "",
      "Password": "",
      "Smtp": {
        "Host": "localhost",
        "Port": 587
      }
    },
    "XorKey": "Q22yg09A91YWm1GsOf9VIMiw",
    "ContainerProvider": {
      "Type": "Docker", // or "Kubernetes"
      "PublicEntry": "ctf.example.com", // or "xxx.xxx.xxx.xxx"

    },
    "DisableRateLimit": false,
    "RegistryConfig": {
      "UserName": "",
      "Password": "",
      "ServerAddress": ""
    },
    "GoogleRecaptcha": {
      "VerifyAPIAddress": "https://www.recaptcha.net/recaptcha/api/siteverify",
      "Sitekey": "",
      "Secretkey": "",
      "RecaptchaThreshold": "0.5"
    }
}
now4yreal commented 1 year ago

问题已解决,配置文件里配置服务器没有配置正确