...
|
...
|
@@ -37,6 +37,12 @@ func init() { |
|
|
web.BConfig.Listen.HTTPSPort = 443
|
|
|
web.BConfig.Listen.HTTPSCertFile = "./config/fjmaimaimai.com_bundle.crt"
|
|
|
web.BConfig.Listen.HTTPSKeyFile = "./config/fjmaimaimai.com.key"
|
|
|
if os.Getenv("HTTPS_PORT") != "" {
|
|
|
portStr := os.Getenv("HTTPS_PORT")
|
|
|
if port, err := strconv.Atoi(portStr); err == nil {
|
|
|
web.BConfig.Listen.HTTPSPort = port
|
|
|
}
|
|
|
}
|
|
|
|
|
|
filters.SecureKeyMap["token"] = "x-mmm-accesstoken"
|
|
|
web.InsertFilter("/*", web.BeforeRouter, filters.AllowCors())
|
...
|
...
|
|