kefu/common/common.go

69 lines
3.4 KiB
Go

package common
var (
PageSize uint = 9
VisitorPageSize uint = 10
Version string = "0.6.0"
VisitorExpire float64 = 600
Upload string = "static/upload/"
Dir string = "config/"
MysqlConf string = Dir + "mysql.json"
MySQLConnectFaild bool = false
RpcServer string = "0.0.0.0:8082"
RpcStatus bool = false
SecretToken string = "AaBbCcDd123AaBbCcDd"
AesKey string = "ggcjd4slhtjyxl16"
WsBreakTimeout int64 = 5 //断线超时秒数
IsCompireTemplate bool = false //是否编译静态模板到二进制
IsTry bool = false
TryDeadline int64 = 30 * 24 * 3600 //试用十四天
EveryDayYuan int64 = 2 //每天2块
RsaPublicKey string = `
-----BEGIN PUBLIC KEY-----
MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAqNF3f0M6xRxsAuiQ5Zq+
eoFIQjpc/d8Ahbr5l6KuRfHvy78l3OtkZeiL8mtMsHJi+YoDDycHE4UpwruM9w/m
JqRKWMgi8DHwVtBSQgfYVLPm1U6grk331Qdqzryz5LZicBvNZ/BuasA+CNHX4prs
WPVLWxPxxSsz0+35+xW29Pxcv1PeQV4TH0FeSzLBFNDPD9EXcHjlyqHPoV+rq//f
/lJ1zD7mish7gttRvUTQyAijUNmFxBKe3hkSxBlm4xP1K5owqkg3KqrC6Q5ZPvsk
14WttTglFlTeHLT3qH4VtqCY/oBl72uiWlF7cFRgW05Pkr9PgR4aCPh8EjOktb6P
twIDAQAB
-----END PUBLIC KEY-----
`
RsaPrivateKey string = `
-----BEGIN PRIVATE KEY-----
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCo0Xd/QzrFHGwC
6JDlmr56gUhCOlz93wCFuvmXoq5F8e/LvyXc62Rl6Ivya0ywcmL5igMPJwcThSnC
u4z3D+YmpEpYyCLwMfBW0FJCB9hUs+bVTqCuTffVB2rOvLPktmJwG81n8G5qwD4I
0dfimuxY9UtbE/HFKzPT7fn7Fbb0/Fy/U95BXhMfQV5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oeLAUses1iXNDaerqnOp9AC/4f37C4c6GF1hPl/U7
kzWIrMiWZ75+NWJ/uqR7VJxDjzZk5w+E5EOhRMM+MO8Nx65gnycfFXzI2onOk+bt
vbImfUIUKtM+CGBzOjysu+YzNb7HOgX/MpgWOloRAoGABhFCzH25mkJ6fkLi56Oy
SRmY9e/MYZ8a/sd1M64AKza0rCn10nJNA2ONJfTDvB7LJAxl5/FGf77MIl3Pp8kw
/FuwsMOdZuLLL2d3cVPFp1yHJE90upQA/xOtNM0bJ+9EJS+SVuOhmgJyqwmvaLLx
cUF2wlZSGDrH4SoQMqjDGPg=
-----END PRIVATE KEY-----
`
DomainWhiteList string = "*" //域名白名单
RootPath string = "" //自动获取,程序运行根路径
LogDirPath string = "" //自动获取,程序运行根路径/logs/
ConfigDirPath string = "" //自动获取,程序运行根路径/config/
StaticDirPath string = "" //自动获取,程序运行根路径/static/
UploadDirPath string = "" //自动获取,程序运行根路径/static/upload/
)