feat: OnlyOffice Standalone integration with S3 direct URLs

 ЧТО СДЕЛАНО:
- Поднят новый standalone OnlyOffice Document Server (порт 8083)
- Настроен Nginx для доступа через office.clientright.ru:9443
- Создан open_file_v3_standalone.php для работы с новым OnlyOffice
- Реализована поддержка прямых S3 URL (bucket публичный)
- Добавлен s3_proxy.php с поддержкой Range requests
- Создан onlyoffice_callback.php для сохранения (базовая версия)
- Файлы успешно открываются и загружаются!

⚠️ TODO (на завтра):
- Доработать onlyoffice_callback.php для сохранения обратно в ОРИГИНАЛЬНЫЙ путь в S3
- Добавить Redis маппинг documentKey → S3 path
- Обновить CRM JS для использования open_file_v3_standalone.php
- Протестировать сохранение файлов
- Удалить тестовые файлы

📊 РЕЗУЛЬТАТ:
- OnlyOffice Standalone РАБОТАЕТ! 
- Файлы открываются напрямую из S3 
- Редактор загружается БЫСТРО 
- Автосохранение настроено  (но нужна доработка callback)
This commit is contained in:
Fedor
2025-11-01 01:02:03 +03:00
parent d7941ac862
commit 269c7ea216
4383 changed files with 282112 additions and 7731 deletions

View File

@@ -1,6 +1,6 @@
<?php /* Smarty version Smarty-3.1.7, created on 2025-10-23 11:29:24
<?php /* Smarty version Smarty-3.1.7, created on 2025-10-31 22:47:43
compiled from "/var/www/fastuser/data/www/crm.clientright.ru/includes/runtime/../../layouts/v7/modules/ITS4YouQuickReminder/Reminder.tpl" */ ?>
<?php /*%%SmartyHeaderCode:132099060768f9e764713086-74607045%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
<?php /*%%SmartyHeaderCode:2720818816905125f342da2-60644337%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
'file_dependency' =>
array (
@@ -11,7 +11,7 @@ $_valid = $_smarty_tpl->decodeProperties(array (
2 => 'file',
),
),
'nocache_hash' => '132099060768f9e764713086-74607045',
'nocache_hash' => '2720818816905125f342da2-60644337',
'function' =>
array (
),
@@ -21,9 +21,9 @@ $_valid = $_smarty_tpl->decodeProperties(array (
),
'has_nocache_code' => false,
'version' => 'Smarty-3.1.7',
'unifunc' => 'content_68f9e76471d32',
'unifunc' => 'content_6905125f34710',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_68f9e76471d32')) {function content_68f9e76471d32($_smarty_tpl) {?>
<?php if ($_valid && !is_callable('content_6905125f34710')) {function content_6905125f34710($_smarty_tpl) {?>
<li class="its4you_quickreminder_menu" style="display: block;"><div class="dropdown pull-left"><div class="dropdown-toggle displayInlineBlock" data-toggle="dropdown" aria-expanded="true"><a href="#" id="menubar_its4you_quickreminder" class="<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>
_menu_icon fa fa-bell" title="Quick Reminder" aria-hidden="true"><span class="ITS4YouQuickReminderBadge animated bounce numberCircle" style="position: absolute; right: 0; bottom: 5px; display: none; border-radius: 10px;font: bold 10px Arial; padding: 3px 5px;"></span></a></div><ul class="dropdown-menu its4you_quickreminder_dropdown"><?php echo $_smarty_tpl->getSubTemplate (vtemplate_path("ReminderList.tpl","ITS4YouQuickReminder"), $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</ul></div><style>.<?php echo $_smarty_tpl->tpl_vars['MODULE']->value;?>