diff --git a/assets/YAxC-Filled@1024px.png b/assets/YAxC-Filled@1024px.png new file mode 100644 index 0000000..0e06ab6 Binary files /dev/null and b/assets/YAxC-Filled@1024px.png differ diff --git a/assets/YAxC-Filled@128px.png b/assets/YAxC-Filled@128px.png new file mode 100644 index 0000000..3968941 Binary files /dev/null and b/assets/YAxC-Filled@128px.png differ diff --git a/assets/YAxC-Filled@2048px.png b/assets/YAxC-Filled@2048px.png new file mode 100644 index 0000000..ba15f91 Binary files /dev/null and b/assets/YAxC-Filled@2048px.png differ diff --git a/assets/YAxC-Filled@256px.png b/assets/YAxC-Filled@256px.png new file mode 100644 index 0000000..79afa7b Binary files /dev/null and b/assets/YAxC-Filled@256px.png differ diff --git a/assets/YAxC-Filled@512px.png b/assets/YAxC-Filled@512px.png new file mode 100644 index 0000000..15cbd3a Binary files /dev/null and b/assets/YAxC-Filled@512px.png differ diff --git a/assets/YAxC-Filled@64px.png b/assets/YAxC-Filled@64px.png new file mode 100644 index 0000000..aa25cf9 Binary files /dev/null and b/assets/YAxC-Filled@64px.png differ diff --git a/assets/favicon.ico b/assets/favicon.ico new file mode 100644 index 0000000..28f2feb Binary files /dev/null and b/assets/favicon.ico differ diff --git a/internal/server/server.go b/internal/server/server.go index 6cb1091..1adf2ff 100644 --- a/internal/server/server.go +++ b/internal/server/server.go @@ -2,6 +2,7 @@ package server import ( "github.com/gofiber/fiber/v2" + "github.com/gofiber/fiber/v2/middleware/favicon" "github.com/gofiber/fiber/v2/middleware/limiter" "strings" "time" @@ -10,7 +11,7 @@ import ( func (s *yAxCServer) Start() { log.Info("Starting YAxC server on", s.BindAddress) - cfg := &fiber.Config{Immutable: true} + cfg := fiber.Config{} if s.ProxyHeader != "" { if s.ProxyHeader == "$proxy" { @@ -18,7 +19,12 @@ func (s *yAxCServer) Start() { } cfg.ProxyHeader = s.ProxyHeader } - s.App = fiber.New(*cfg) + + s.App = fiber.New(cfg) + + s.App.Use(favicon.New(favicon.Config{ + File: "./assets/favicon.ico", + })) // limiter middleware s.App.Use(limiter.New(limiter.Config{