57 lines
1.0 KiB
JSON
57 lines
1.0 KiB
JSON
{
|
|
"patterns": [
|
|
{
|
|
"lua_regex": [
|
|
"^/mixed/admin",
|
|
"^/mixed/.-/wiki/_new"
|
|
],
|
|
"public": false,
|
|
"allow": [
|
|
"*"
|
|
],
|
|
"deny": [
|
|
"guest"
|
|
],
|
|
"actions": [
|
|
{
|
|
"type": "cookie",
|
|
"name": "X-PROXY-USER",
|
|
"value": "\ru."
|
|
},
|
|
{
|
|
"type": "cookie",
|
|
"name": "X-PROXY-PASSWORD",
|
|
"value": "\rp."
|
|
},
|
|
{
|
|
"type": "header",
|
|
"name": "Authorization",
|
|
"value": "Basic \rb64(\ru.:\rp.)."
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"lua_regex": [
|
|
"^/mixed"
|
|
],
|
|
"public": true,
|
|
"actions": [
|
|
{
|
|
"type": "cookie",
|
|
"name": "X-PROXY-USER",
|
|
"value": "\ru."
|
|
},
|
|
{
|
|
"type": "cookie",
|
|
"name": "X-PROXY-PASSWORD",
|
|
"value": "\rp."
|
|
}
|
|
],
|
|
"portal": {
|
|
"/mixed/\ru./files": "My files",
|
|
"/mixed/\ru./webmail": "My e-mail"
|
|
}
|
|
}
|
|
]
|
|
}
|