Update hub bundle and add proxy rule to htaccess

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2020-05-25 16:04:54 +02:00
parent e57bca31ad
commit bde5b9577b
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
3 changed files with 6 additions and 5 deletions

View File

@ -82,11 +82,11 @@ const recommended = {
spreed: { spreed: {
description: t('core', 'Chatting, video calls, screensharing, online meetings and web conferencing in your browser and with mobile apps.'), description: t('core', 'Chatting, video calls, screensharing, online meetings and web conferencing in your browser and with mobile apps.'),
}, },
onlyoffice: { richdocuments: {
description: t('core', 'Collaboratively edit office documents.'), description: t('core', 'Collaboratively edit office documents.'),
}, },
documentserver_community: { richdocumentscode: {
description: t('core', 'Local document editing back-end used by the OnlyOffice app.'), description: t('core', 'Local document editing back-end used by the Collabora Online app.'),
}, },
} }
const recommendedIds = Object.keys(recommended) const recommendedIds = Object.keys(recommended)

View File

@ -37,8 +37,8 @@ class HubBundle extends Bundle {
'contacts', 'contacts',
'calendar', 'calendar',
'mail', 'mail',
'documentserver_community', 'richdocumentscode',
'onlyoffice', 'richdocuments',
]; ];
} }
} }

View File

@ -543,6 +543,7 @@ class Setup {
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/ocs-provider/"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !/ocs-provider/";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/ocm-provider/"; $content .= "\n RewriteCond %{REQUEST_FILENAME} !/ocm-provider/";
$content .= "\n RewriteCond %{REQUEST_URI} !^/\\.well-known/(acme-challenge|pki-validation)/.*"; $content .= "\n RewriteCond %{REQUEST_URI} !^/\\.well-known/(acme-challenge|pki-validation)/.*";
$content .= "\n RewriteCond %{REQUEST_FILENAME} !/richdocumentscode/proxy.php$";
$content .= "\n RewriteRule . index.php [PT,E=PATH_INFO:$1]"; $content .= "\n RewriteRule . index.php [PT,E=PATH_INFO:$1]";
$content .= "\n RewriteBase " . $rewriteBase; $content .= "\n RewriteBase " . $rewriteBase;
$content .= "\n <IfModule mod_env.c>"; $content .= "\n <IfModule mod_env.c>";