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6o3PLflv/3GtcbAUvyxT6FcqOAYLTKaX0CgYEAzQAn
gEKcDvbyX/FSfjFemN3xR71IuKZVEif/3Cgw6kEjODOt+3oTYyVubX8YiTO0E89D
1rnbxyK3gIfOqjyOIKZGFLHjFs+J7aaKqTUuMDIVKIIUl18YWEP9aaJKLZQ9u4jw
GhrkPi/kRWg3VrnZMgrBTzFOKx0khATdmwZYUMUCgYEAjF4tJRGjbb2gRfryll0P
jiVLEbCvcD/ChrmDg4YzBSJ5Q073C6nmbhxM/tRQCHLhvGJ61fBtVt2ZyXtgO9F2
xmWxFGo00pwYe4bgVdJcK23yrrGZuj8kMOptoKp/NouDQrlSv+c6YqjW+I//a1JR
hEO6qf/2ersTGTkDsBp5MskCgYEAnuTIuTxn052K/dyBsTg490nH03AeZqjd9WW1
hoJMb7WvQ8eiyfG0BzwjHJHPhcDiihwzm8KRXAdHrkMVZ5PqIdpfJXk/6BVS9jYI
8eA7fbXD+pLgvPdDWl7Qk8jrr+pf8vTQDZvcX2slhrqhcgI5G/WEIgq4aOh8vis7
TQac+3UCgYAMS0k2lv8k0TBf+XlsK2oJNamxjrTkLpEKhPTCLEI0uP5CxR6UNHFA
jeotW/ms+AyaZUXTt8+wQ4/JbhSuMWDbTO5KMzlVI5biDEu48YVFYUgnlXlvKRA7
qC7q6Opss26RP+HYXBdHObVvNkTxB49kirwMzbwSjG3xFQsopaeS6g==
-----END RSA PRIVATE KEY-----
... ...
... ... @@ -84,6 +84,13 @@ func main() {
log.Info("app on start!")
log.Info("Beego Run Mode:", beego.BConfig.RunMode)
beego.InsertFilter("file/opp/*", beego.BeforeStatic, FilterBeforeStatic)
//https
//beego.BConfig.Listen.EnableHTTPS = true
//beego.BConfig.Listen.Graceful = true
//beego.BConfig.Listen.HTTPSPort = 8089
//beego.BConfig.Listen.HTTPSCertFile = "conf/server.crt"
//beego.BConfig.Listen.HTTPSKeyFile = "conf/server.key"
beego.Run()
}
... ...