✏️ New file server to serve static files. It works on a different address, so it doesn't affect the HTTP performance. It uses advanced configuration specific for the static file servers. It can handle any number of directories with its own HTTP prefixes.
Config:
fileserver:
# File server address
#
# Error on empty
address: 127.0.0.1:10101
# Etag calculation. Request body CRC32.
#
# Default: false
calculate_etag: true
Weak etag calculation
Default: false
weak: false
Enable body streaming for the files more than 4KB
Default: false
stream_request_body: true
serve:
# HTTP prefix
#
# Error on empty
prefix: "/foo"
Directory to serve
Default: "."
root: "../../../tests"
When set to true, the server tries minimizing CPU usage by caching compressed files
Default: false
compress: false
Expiration duration for inactive file handlers. Units: seconds.
Default: 10, use a negative value to disable it.
cache_duration: 10
The value for the Cache-Control HTTP-header. Units: seconds
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/spiral/roadrunner-plugins/v2 from 2.6.0-beta.1 to 2.6.0-rc.1.
Release notes
Sourced from github.com/spiral/roadrunner-plugins/v2's releases.
... (truncated)
Commits
ede8b4b
update dependencies4d36036
Remove uselessHTTP Listeners re-added
log entrya758314
#135: refactoring(http, headers): headers mdw refactoringac2acde
update mock logger in the service test as the output might be in the42a1bf6
small headers mdw refactoring1052d92
#134: feat(http, uploads): addallow
optiond6e8b55
make reload copy error softbe0b191
update deps2290f3e
update HTTP plugin docs13b01da
Update CHANGELOGDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)