You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.go 986 B

12345678910111213141516171819202122232425262728293031
  1. package main
  2. import (
  3. "github.com/astaxie/beego"
  4. "github.com/astaxie/beego/plugins/cors"
  5. "github.com/casbin/casvisor/routers"
  6. _ "github.com/casbin/casvisor/routers"
  7. )
  8. func main() {
  9. beego.InsertFilter("*", beego.BeforeRouter, cors.Allow(&cors.Options{
  10. AllowOrigins: []string{"*"},
  11. AllowMethods: []string{"GET", "PUT", "PATCH"},
  12. AllowHeaders: []string{"Origin"},
  13. ExposeHeaders: []string{"Content-Length"},
  14. AllowCredentials: true,
  15. }))
  16. //beego.DelStaticPath("/static")
  17. beego.SetStaticPath("/static", "web/build/static")
  18. // https://studygolang.com/articles/2303
  19. beego.InsertFilter("/", beego.BeforeRouter, routers.TransparentStatic) // must has this for default page
  20. beego.InsertFilter("/*", beego.BeforeRouter, routers.TransparentStatic)
  21. beego.BConfig.WebConfig.Session.SessionProvider = "file"
  22. beego.BConfig.WebConfig.Session.SessionProviderConfig = "./tmp"
  23. beego.BConfig.WebConfig.Session.SessionGCMaxLifetime = 3600 * 24 * 365
  24. beego.Run()
  25. }

Caswire是一款基于人工智能技术的开源反病毒和入侵检测系统。该系统通过深度学习和模式识别技术,能够实时识别和防御各种网络威胁,包括病毒、恶意软件以及其他安全威胁。Caswire支持动态学习和适应网络环境的变化,确保持续的安全防护。我们期望在Caswire上:1)增强其机器学习模型,以提高恶意行为的检测准确率;2)优化系统的实时响应能力,提升在高威胁环境下的表现。

Contributors (1)