-
Notifications
You must be signed in to change notification settings - Fork 349
Define domain specific workers in php_server
and php
blocks
#1509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 10 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
a165c4e
add module (php_server directive) based workers
henderkes 61bbef4
refactor moduleID to uintptr for faster comparisons
henderkes 7fffbc2
let workers inherit environment variables and root from php_server
henderkes 60c3e12
caddy can shift FrankenPHPModules in memory for some godforsaken reas…
henderkes 97913f8
remove debugging statement
henderkes a22cd19
fix tests
henderkes a4016df
refactor moduleID to uint64 for faster comparisons
henderkes a21d3f4
actually allow multiple workers per script filename
henderkes 7718a8e
remove logging
henderkes c7172d2
utility function
henderkes f955187
reuse existing worker with same filename and environment when calling…
henderkes e362fd3
no cleanup happens between tests, so restore old global worker overwr…
henderkes 00d819f
add test, use getWorker(ForContext) function in frankenphp.go as well
henderkes bc48bdd
bring error on second global worker with the same filename again
henderkes 0b22d51
refactor to using name instead of moduleID
henderkes c6bcacf
nicer name
henderkes 53795c7
nicer name
henderkes 958537e
add more tests
henderkes 6c39229
remove test case already covered by previous test
henderkes e19b7b2
revert back to single variable, moduleIDs no longer relevant
henderkes 2ff18ba
update comment
henderkes 5fc1edf
figure out the worker to use in FrankenPHPModule::ServeHTTP
henderkes 2c2f677
add caddy/config_tests, add --retry 5 to download
henderkes 3b15199
add caddy/config_tests
henderkes af18d04
sum up logic a bit, put worker thread addition into moduleWorkers par…
henderkes dd5dc9b
implement suggestions as far as possible
henderkes c4937ac
fixup
henderkes 401d25d
remove tags
henderkes a444361
feat: download the mostly static binary when possible (#1467)
dunglas 6ebea60
docs: remove wildcard matcher from root directive (#1513)
IndraGunawan fb4e262
docs: update README with additional documentation links
Rom1Bastide 9ff4ee2
ci: combine dependabot updates for one group to 1 pull-request
IndraGunawan e648532
feat: compatibility with libphp.dylib on macOS
dunglas af74391
feat: upgrade to Caddy 2.10
dunglas 34f3b25
feat: upgrade to Caddy 2.10
dunglas 9929383
chore: run prettier
dunglas 0bbd4c6
fix: build-static.sh consecutive builds (#1496)
henderkes c96f53c
chore: update Go and toolchain version (#1526)
IndraGunawan 26360fb
apply suggestions one be one - scriptpath only
henderkes 39430e8
merge main into workers
henderkes 801e71c
generate unique worker names by filename and number
henderkes 6650045
support worker config from embedded apps
henderkes 53e7bc0
rename back to make sure we don't accidentally add FrankenPHPApp work…
henderkes 78be813
fix test after changing error message
henderkes 4cc8893
use 🧩 for module workers
henderkes 1c414ce
use 🌍 for global workers :)
henderkes 9ccac16
Merge branch 'main' into workers
henderkes 3f8f5ec
revert 1c414cebbc4380b26c4ac46a8662f88bd807aa09
henderkes a6596c7
revert 4cc8893cedc8a2c9e2195ca0e83e8e9cc359e136
henderkes d5d2eb3
apply suggestions
henderkes 6f27895
add dynamic config loading test of module worker
henderkes a6b840f
Merge remote-tracking branch 'dunglas/main' into workers
henderkes 877a6ce
fix test
henderkes 94bce80
Merge branch 'main' into workers
henderkes 73d3266
minor changes
dunglas 1c38f0d
Merge branch 'main' into workers
dunglas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.