Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { OfflineUUID bool `` /* 175-byte string literal not displayed */ Port string `toml:"port"` Log Log `toml:"log"` Sql Sql `toml:"sql"` Debug bool `toml:"debug" comment:"输出每条执行的 sql 语句"` Cache Cache `toml:"cache"` RaelIP bool `` /* 137-byte string literal not displayed */ MaxIpUser int `toml:"maxIpUser" comment:"ip 段最大注册用户,ipv4 为 /24 ipv6 为 /48"` RsaPriKey string `toml:"rsaPriKey,multiline" comment:"运行后勿修改,若为集群需设置为一致"` TexturePath string `toml:"texturePath" comment:"材质文件保存路径,如果需要对象存储可以把对象储存挂载到本地目录上"` TextureBaseUrl string `` /* 336-byte string literal not displayed */ WebBaseUrl string `toml:"webBaseUrl" comment:"用于在支持的启动器中展示本站的注册地址\n填写类似 https://example.com"` ServerName string `toml:"serverName" comment:"皮肤站名字,用于在多个地方展示"` Captcha Captcha `toml:"captcha"` Email EmailConfig `toml:"email"` }
type EmailConfig ¶ added in v0.0.3
type EmailConfig struct { Enable bool `toml:"enable" comment:"注册验证邮件,且允许使用邮箱找回账号"` Smtp []SmtpUser `toml:"smtp"` AllowDomain []string `toml:"allow_domain" comment:"允许用于注册的邮箱域名,留空则允许全部"` EmailReg string `toml:"email_reg" comment:"邮箱正则,留空则不处理,如 ^[0-9]+@qq.com$|^[^+\\.A-Z]+@gmail.com$"` EmailRegMsg string `toml:"email_reg_msg" comment:"不满足要求时的提示信息"` }
Click to show internal directories.
Click to hide internal directories.