2023-11-16 15:06:59 +00:00
|
|
|
{
|
|
|
|
"name": "Example Site",
|
|
|
|
"rules": [
|
|
|
|
{
|
2023-11-17 16:23:40 +00:00
|
|
|
"host": [
|
|
|
|
"localhost"
|
|
|
|
],
|
|
|
|
"path": [
|
|
|
|
"/"
|
|
|
|
]
|
2023-11-16 15:06:59 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"upstreams": [
|
|
|
|
{
|
|
|
|
"name": "Example Upstream",
|
2023-11-17 16:23:40 +00:00
|
|
|
"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"
|
|
|
|
}
|
2023-11-16 15:06:59 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|