Alexander Stecher
98573ed7c0
refactor: extract the state module and make the backoff error instead of panic
...
This PR:
- moves state.go to its own module
- moves the phpheaders test the phpheaders module
- simplifies backoff.go
- makes the backoff error instead of panic (so it can be tested)
- removes some unused C structs
2025-12-02 23:10:12 +01:00
Alexander Stecher
fb10b1e8f0
feat: worker matching ( #1646 )
...
* Adds 'match' configuration
* test
* Adds Caddy's matcher.
* Adds no-fileserver test.
* Prevents duplicate path calculations and optimizes worker access.
* trigger
* Changes worker->match to match->worker
* Adjusts tests.
* formatting
* Resets implementation to worker->match
* Provisions match path rules.
* Allows matching multiple paths
* Fixes var
* Formatting.
* refactoring.
* Adds 'match' configuration
* test
* Adds Caddy's matcher.
* Adds no-fileserver test.
* Prevents duplicate path calculations and optimizes worker access.
* trigger
* Changes worker->match to match->worker
* Adjusts tests.
* formatting
* Resets implementation to worker->match
* Provisions match path rules.
* Allows matching multiple paths
* Fixes var
* Formatting.
* refactoring.
* Update frankenphp.go
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr >
* Update caddy/workerconfig.go
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr >
* Update caddy/workerconfig.go
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr >
* Update caddy/module.go
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr >
* Update caddy/module.go
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr >
* Fixes suggestion
* Refactoring.
* Adds 'match' configuration
* test
* Adds Caddy's matcher.
* Adds no-fileserver test.
* Prevents duplicate path calculations and optimizes worker access.
* trigger
* Changes worker->match to match->worker
* Adjusts tests.
* formatting
* Resets implementation to worker->match
* Provisions match path rules.
* Allows matching multiple paths
* Fixes var
* Formatting.
* refactoring.
* Adds docs.
* Fixes merge removal.
* Update config.md
* go fmt.
* Adds line ending to static.txt and fixes tests.
* Trigger CI
* fix Markdown CS
---------
Co-authored-by: Alliballibaba <alliballibaba@gmail.com >
Co-authored-by: Kévin Dunglas <kevin@dunglas.fr >
2025-07-01 10:27:11 +02:00
Alexandre Daubois
96400a85d0
feat(worker): make maximum consecutive failures configurable ( #1692 )
2025-06-30 09:38:18 +02:00
Indra Gunawan
1ec37f6cc9
feat: replace zap with slog ( #1527 )
2025-04-26 11:04:46 +02:00
Indra Gunawan
87315a19ae
feat: introduces worker name option, use label on worker metrics instead ( #1376 )
...
* add worker name option and use it in logs and metrics, update tests
* fix missing reference for collector
* update tests
* update docs
* fix conflict
* add missing allowedDirectives
* update tests
2025-03-22 12:32:59 +01:00
Alliballibaba2
072151dfee
feat: Adds automatic thread scaling at runtime and php_ini configuration in Caddyfile ( #1266 )
...
Adds option to scale threads at runtime
Adds php_ini configuration in Caddyfile
2025-02-19 20:39:33 +01:00