Update security middleware and update Docker configurations
- Added a new parameter to the SecurityMiddleware function to allow custom handling of forbidden requests. - Updated Docker configurations to enable asset caching for improved performance. - Bumped version number in the Dockerfile to 0.3.0 and refined the image description for clarity. - Adjusted various frontend components and error handling to support new rate limiting and forbidden access messages. - Improved documentation in multiple languages to reflect recent changes in features and security measures.
This commit is contained in:
@@ -51,7 +51,7 @@ func TestMainHandlers(t *testing.T) {
|
||||
apiServer := api.NewServer("", initialSoftware, statsService, true)
|
||||
|
||||
r := chi.NewRouter()
|
||||
r.Use(security.SecurityMiddleware(statsService, botBlocker))
|
||||
r.Use(security.SecurityMiddleware(statsService, botBlocker, nil))
|
||||
r.Get("/api/software", apiServer.APISoftwareHandler)
|
||||
r.Get("/api/stats", statsService.APIStatsHandler)
|
||||
r.Get("/api/download", apiServer.DownloadProxyHandler)
|
||||
|
||||
Reference in New Issue
Block a user