✨ Transformers
This commit is contained in:
@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user