✅ ЧТО СДЕЛАНО: - Поднят новый 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)
@aws-sdk/signature-v4-multi-region
See also https://github.com/aws/aws-sdk-js-v3/tree/main#functionality-requiring-aws-common-runtime-crt.
Usage
This package contains optional dependency @aws-sdk/signature-v4-crt.
You need to install this package explicitly to sign an un-regional request using SigV4a algorithm. The package contains
Node.js native implementation which requires building at installation. The installed package MAY NOT work if the
instance building the package runs a different operating system than the instance running the application.
The @aws-sdk/signature-v4-crt is only supported in Node.js currently because it depends on a native dependency.
Please refer to this issue for more information.
Note: You can also use a native JS (non-CRT) implementation of the SigV4A signer, instructions for which are here: https://github.com/aws/aws-sdk-js-v3/tree/main#functionality-requiring-aws-common-runtime-crt
Please refer to the note regarding bundle size in the link above, before deciding to use the JS SigV4A signer (including in browsers).
Description
This package provides a SigV4-compatible request signer that wraps a pure-JS SigV4 signer
(@aws-sdk/signature-v4) for regional requests, and attempts to
call a native implementation of SigV4a signer(@aws-sdk/signature-v4-crt)
it the request is multi-region.
A multi-region request is identified by the signingRegion parameter. A request is multi-region if the signingRegion
parameter is set to *.