mirror of
https://github.com/ONLYOFFICE/server.git
synced 2026-02-10 18:05:07 +08:00
[bug] Fix request-filtering-agent schema; Fix bug 77095
This commit is contained in:
@ -23,8 +23,8 @@ function RequestFiltering() {
|
||||
|
||||
// Configuration paths
|
||||
const CONFIG_PATHS = {
|
||||
allowPrivateIPAddress: 'request-filtering-agent.allowPrivateIPAddress',
|
||||
allowMetaIPAddress: 'request-filtering-agent.allowMetaIPAddress'
|
||||
allowPrivateIPAddress: 'services.CoAuthoring.request-filtering-agent.allowPrivateIPAddress',
|
||||
allowMetaIPAddress: 'services.CoAuthoring.request-filtering-agent.allowMetaIPAddress'
|
||||
};
|
||||
|
||||
const hasInitialized = useRef(false);
|
||||
|
||||
@ -87,6 +87,21 @@
|
||||
"sessionabsolute": {"type": "string", "x-scope": ["admin", "tenant"]}
|
||||
}
|
||||
},
|
||||
"request-filtering-agent": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"x-scope": ["admin", "tenant"],
|
||||
"properties": {
|
||||
"allowPrivateIPAddress": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to allow requests from private IP addresses"
|
||||
},
|
||||
"allowMetaIPAddress": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to allow requests from meta IP addresses"
|
||||
}
|
||||
}
|
||||
},
|
||||
"autoAssembly": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
@ -165,21 +180,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"request-filtering-agent": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"x-scope": ["admin", "tenant"],
|
||||
"properties": {
|
||||
"allowPrivateIPAddress": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to allow requests from private IP addresses"
|
||||
},
|
||||
"allowMetaIPAddress": {
|
||||
"type": "boolean",
|
||||
"description": "Whether to allow requests from meta IP addresses"
|
||||
}
|
||||
}
|
||||
},
|
||||
"FileConverter": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
|
||||
Reference in New Issue
Block a user