Static: variables in the "share" option.
This commit supports variable in the "share" option, the finding path to
file serve is the value from "share". An example:
{
"share": "/www/data/static$uri"
}
This commit is contained in:
@@ -28,7 +28,9 @@ class TestStatic(TestApplicationProto):
|
||||
self._load_conf(
|
||||
{
|
||||
"listeners": {"*:7080": {"pass": "routes"}},
|
||||
"routes": [{"action": {"share": option.temp_dir + "/assets"}}],
|
||||
"routes": [
|
||||
{"action": {"share": option.temp_dir + "/assets$uri"}}
|
||||
],
|
||||
"settings": {
|
||||
"http": {
|
||||
"static": {
|
||||
|
||||
Reference in New Issue
Block a user