Transformers

This commit is contained in:
2023-11-18 00:23:40 +08:00
parent 2fc1ef89db
commit ff1f1dbc9d
13 changed files with 257 additions and 98 deletions

View File

@ -2,14 +2,27 @@
"name": "Example Site",
"rules": [
{
"host": ["localhost"],
"path": ["/"]
"host": [
"localhost"
],
"path": [
"/"
]
}
],
"upstreams": [
{
"name": "Example Upstream",
"uri": "https://example.com"
"uri": "https://disk.smartsheep.studio"
}
],
"transformers": [
{
"type": "replacePath",
"options": {
"pattern": "/p/123",
"value": "/p/%E5%B7%A5%E4%BD%9C%E5%AE%A4/icon.png"
}
}
]
}