diff --git a/config/appsettings.json b/config/appsettings.json index 244db5cbd9..7af7edb17e 100644 --- a/config/appsettings.json +++ b/config/appsettings.json @@ -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" + } } } diff --git a/config/nginx/onlyoffice.conf b/config/nginx/onlyoffice.conf index a20b609a8a..d90d9c0798 100644 --- a/config/nginx/onlyoffice.conf +++ b/config/nginx/onlyoffice.conf @@ -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;