8504b6d13d
fix(staticweb): add nil check to WithStripPrefix helper
...
Prevent panic when WithStripPrefix is called with a nil provider by
using reflection to check for typed nil pointers stored in interfaces.
2026-01-03 14:47:21 +02:00
2017465cb8
feat(staticweb): add path prefix stripping to all filesystem providers
...
Add PrefixStrippingProvider interface and implement it in all providers
(EmbedFSProvider, LocalFSProvider, ZipFSProvider) to support serving
files from subdirectories at the root level.
2026-01-03 14:39:51 +02:00
d33747c2d3
feat(staticweb): add path prefix stripping to EmbedFSProvider
...
Adds WithStripPrefix method to allow serving files from subdirectories
at the root path. For example, files at /dist/assets can be made
accessible via /assets by calling WithStripPrefix("/dist").
2026-01-03 14:25:04 +02:00
250fcf686c
feat(config): add multiple server instances support
...
- Add ServersConfig and ServerInstanceConfig structs
- Support configuring multiple named server instances
- Add global timeout defaults with per-instance overrides
- Add TLS configuration options (SSL cert/key, self-signed, AutoTLS)
- Add validation for server configurations
- Add helper methods for applying defaults and getting default server
- Add conversion helper to avoid import cycles
2026-01-03 01:48:42 +02:00
Hein
49cdc6f17b
fix: lint issues after merge
2025-12-30 17:46:33 +02:00
Hein
9209193157
fix: lint issues and docs
2025-12-30 17:44:57 +02:00
Hein
28fd88fff1
staticweb package for easier static web server hosting
2025-12-30 17:31:07 +02:00
Hein
897cb2ae0d
fix: liniting issues and events dev
2025-12-30 14:40:45 +02:00
copilot-swe-agent[bot]
eaecef686e
Fix type assertion error in Remove method
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 11:44:56 +00:00
Hein Puth (Warkanum)
16d416030e
Merge pull request #6 from bitechdev/copilot/sub-pr-5
...
Implement persistent certificate storage with reuse for self-signed SSL
2025-12-30 13:27:50 +02:00
copilot-swe-agent[bot]
4f8edd6469
Add security improvements and race condition protection
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 11:14:59 +00:00
copilot-swe-agent[bot]
ccf8522f88
Refactor: Use persistent cert storage with reuse logic
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 11:12:21 +00:00
copilot-swe-agent[bot]
267e84fd84
Implement cleanup for temporary certificate directories
...
Co-authored-by: warkanum <208308+warkanum@users.noreply.github.com >
2025-12-30 11:00:45 +00:00
Hein Puth (Warkanum)
8adc386863
Update pkg/server/manager.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-30 12:58:38 +02:00
Hein Puth (Warkanum)
feb023ec48
Update pkg/server/tls.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-30 12:57:55 +02:00
Hein Puth (Warkanum)
de50141a04
Update pkg/server/manager.go
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-12-30 12:57:35 +02:00
Hein
d4a6f9c4c2
Better server manager
2025-12-29 17:19:16 +02:00
4d1b8b6982
Work on server
2025-12-20 10:42:51 +02:00
Hein
aeae9d7e0c
Added blacklist middleware
2025-12-08 09:26:36 +02:00
Hein
2a84652dba
Middleware enhancements
2025-12-08 08:47:13 +02:00