Files
crm.clientright.ru/crm_extensions/file_storage/node_modules/cluster-key-slot/package.json
Fedor 269c7ea216 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)
2025-11-01 01:02:03 +03:00

57 lines
1.5 KiB
JSON

{
"name": "cluster-key-slot",
"version": "1.1.2",
"description": "Generates CRC hashes for strings - for use by node redis clients to determine key slots.",
"main": "lib/index.js",
"types": "index.d.ts",
"scripts": {
"benchmark": "node ./benchmark",
"posttest": "eslint ./lib && npm run coveralls",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"test": "node ./node_modules/istanbul/lib/cli.js cover --preserve-comments ./node_modules/mocha/bin/_mocha -- -R spec",
"coverage:check": "node ./node_modules/istanbul/lib/cli.js check-coverage --branch 100 --statement 100"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Salakar/cluster-key-slot.git"
},
"keywords": [
"redis",
"hash",
"crc",
"slot",
"calc",
"javascript",
"node",
"node_redis",
"ioredis"
],
"engines": {
"node": ">=0.10.0"
},
"devDependencies": {
"benchmark": "^2.1.0",
"codeclimate-test-reporter": "^0.3.1",
"coveralls": "^2.11.9",
"eslint": "^3.5.0",
"eslint-config-airbnb-base": "^7.1.0",
"eslint-plugin-import": "^1.8.0",
"istanbul": "^0.4.0",
"mocha": "^3.0.2"
},
"author": {
"name": "Mike Diarmid",
"email": "mike.diarmid@gmail.com",
"url": "http://github.com/Salakar/"
},
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/Salakar/cluster-key-slot/issues"
},
"homepage": "https://github.com/Salakar/cluster-key-slot#readme",
"directories": {
"test": "test",
"lib": "lib"
}
}