Commit Graph

6 Commits

Author SHA1 Message Date
5fb00a9118 Update Content Security Policy to allow 'wasm-unsafe-eval' for enhanced WebAssembly support 2025-12-27 15:35:41 -06:00
52df2d76c1 Update CORS configuration in main.go
- Updated the handling of the ALLOWED_ORIGINS environment variable to ensure a default value of '*' is used when the variable is empty, improving the flexibility of CORS settings.
2025-12-27 12:41:51 -06:00
50521bf070 Refactor environment variable handling in main.go
All checks were successful
CI / build (push) Successful in 54s
- Updated command-line flag definitions to use a helper function for retrieving environment variables, allowing for more flexible configuration.
- Changed default values for Gitea server URL, config path, UA blocklist path, and server port to be set via environment variables.
- Modified CORS middleware to accept allowed origins from an environment variable, enhancing security and configurability.
2025-12-27 12:08:41 -06:00
2f0af4c988 Refactor API and background updater functionality
- Updated the StartBackgroundUpdater function to accept a callback for software list updates, improving flexibility.
- Refactored the API handlers to utilize a proxied software list, enhancing data handling and response efficiency.
- Introduced a new method for refreshing the proxied software list, ensuring accurate data representation.
- Added unit tests for API handlers to validate functionality and response correctness.
2025-12-27 03:30:18 -06:00
f08e148b2f Add bot blocker functionality and update security middleware
- Introduced a bot blocker initialized with a user agent blocklist.
- Updated the security middleware to utilize the new bot blocker in both main and test files.
- Enhanced error handling for API requests to return a proper 404 response when content is not found.
2025-12-27 03:15:31 -06:00
1d5d6aacb4 0.1.0 2025-12-27 02:57:25 -06:00