Merge pull request #145 from ONLYOFFICE/feature/openapi

open api
This commit is contained in:
Pavel Bannov 2024-02-22 00:10:27 +03:00 committed by GitHub
commit 6e5204fd85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 30 additions and 0 deletions

View File

@ -596,5 +596,15 @@
"fd00::/8",
"fe80::/64"
]
},
"openApi": {
"enable": true,
"enableUI": true,
"endpoints": {
"asc.web.api": "/openapi/asc.web.api/common.json",
"asc.people": "/openapi/asc.people/common.json",
"asc.files": "/openapi/asc.files/common.json",
"asc.data.backup": "/openapi/asc.data.backup/common.json"
}
}
}

View File

@ -268,6 +268,26 @@ server {
proxy_pass http://127.0.0.1:5000;
}
location /openapi {
proxy_pass http://127.0.0.1:5003;
location ~*/asc.web.api {
proxy_pass http://127.0.0.1:5000;
}
location ~*/asc.people {
proxy_pass http://127.0.0.1:5004;
}
location ~*/asc.files {
proxy_pass http://127.0.0.1:5007;
}
location ~*/asc.data.backup {
proxy_pass http://127.0.0.1:5012;
}
}
location /api/2.0 {
location ~* /(files|privacyroom) {
proxy_pass http://127.0.0.1:5007;