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iCqKzk31CHSsTLIN5uudf0SmUjys6a6Y7gLK3t1eibexwRq
  14 +oKH0XLBAK4g/U0U8ORr2LkB+D9cjQRr0/++SUTRP8vlUZbj3zkI5hrZN0h6r8vk+
  15 +lxK3oUZX+YCSJJ+Z2cBVzJ6o3PLflv/3GtcbAUvyxT6FcqOAYLTKaX0CgYEAzQAn
  16 +gEKcDvbyX/FSfjFemN3xR71IuKZVEif/3Cgw6kEjODOt+3oTYyVubX8YiTO0E89D
  17 +1rnbxyK3gIfOqjyOIKZGFLHjFs+J7aaKqTUuMDIVKIIUl18YWEP9aaJKLZQ9u4jw
  18 +GhrkPi/kRWg3VrnZMgrBTzFOKx0khATdmwZYUMUCgYEAjF4tJRGjbb2gRfryll0P
  19 +jiVLEbCvcD/ChrmDg4YzBSJ5Q073C6nmbhxM/tRQCHLhvGJ61fBtVt2ZyXtgO9F2
  20 +xmWxFGo00pwYe4bgVdJcK23yrrGZuj8kMOptoKp/NouDQrlSv+c6YqjW+I//a1JR
  21 +hEO6qf/2ersTGTkDsBp5MskCgYEAnuTIuTxn052K/dyBsTg490nH03AeZqjd9WW1
  22 +hoJMb7WvQ8eiyfG0BzwjHJHPhcDiihwzm8KRXAdHrkMVZ5PqIdpfJXk/6BVS9jYI
  23 +8eA7fbXD+pLgvPdDWl7Qk8jrr+pf8vTQDZvcX2slhrqhcgI5G/WEIgq4aOh8vis7
  24 +TQac+3UCgYAMS0k2lv8k0TBf+XlsK2oJNamxjrTkLpEKhPTCLEI0uP5CxR6UNHFA
  25 +jeotW/ms+AyaZUXTt8+wQ4/JbhSuMWDbTO5KMzlVI5biDEu48YVFYUgnlXlvKRA7
  26 +qC7q6Opss26RP+HYXBdHObVvNkTxB49kirwMzbwSjG3xFQsopaeS6g==
  27 +-----END RSA PRIVATE KEY-----
@@ -84,6 +84,13 @@ func main() { @@ -84,6 +84,13 @@ func main() {
84 log.Info("app on start!") 84 log.Info("app on start!")
85 log.Info("Beego Run Mode:", beego.BConfig.RunMode) 85 log.Info("Beego Run Mode:", beego.BConfig.RunMode)
86 beego.InsertFilter("file/opp/*", beego.BeforeStatic, FilterBeforeStatic) 86 beego.InsertFilter("file/opp/*", beego.BeforeStatic, FilterBeforeStatic)
  87 +
  88 + //https
  89 + //beego.BConfig.Listen.EnableHTTPS = true
  90 + //beego.BConfig.Listen.Graceful = true
  91 + //beego.BConfig.Listen.HTTPSPort = 8089
  92 + //beego.BConfig.Listen.HTTPSCertFile = "conf/server.crt"
  93 + //beego.BConfig.Listen.HTTPSKeyFile = "conf/server.key"
87 beego.Run() 94 beego.Run()
88 } 95 }
89 96