digitalutsc / private_files_adapter
此模块使用 Cantaloupe 覆盖私有文件系统的访问控制
1.0.0-beta5
2024-02-14 01:43 UTC
Requires
- drupal/group: ^3.0
- drupal/groupmedia: ^4.0@alpha
- drupal/jwt: ^2.0
This package is auto-updated.
Last update: 2024-09-18 23:25:40 UTC
README
相关问题: digitalutsc/islandora_group#4
下载 Islandora Lite 指南
composer require digitalutsc/private_files_adapter
或者
git clone -b islandora_lite https://github.com/digitalutsc/islandora-playbook.git islandora-lite-playbook
为 Openseadragon 查看器应用补丁
- Openseadragon 查看器模块: https://github.com/Islandora/openseadragon
- 运行以下命令
cd /var/www/html/drupal/web/modules/contrib/openseadragon
wget https://raw.githubusercontent.com/digitalutsc/private_files_adapter/main/scripts/openseadragon.authentication.patch
patch -p1 < openseadragon.authentication.patch
如何在 Islandora Lite 指南中调整 Cantaloupe
- 将 delegate.rb 复制到
/opt/cantaloupe
sudo cp /var/www/html/drupal/web/modules/custom/private_files_adapter/scripts/delegates.rb /opt/cantaloupe
- 更改 Cantaloupe 的配置以启用用于查找的代理脚本
sudo mv /opt/cantaloupe/cantaloupe.properties /opt/cantaloupe/cantaloupe.bk
sudo cp /var/www/html/drupal/web/modules/custom/private_files_adapter/scripts/cantaloupe.properties /opt/cantaloupe
- 重启 Cantaloupe
sudo service tomcat9 restart
启用模块
git clone https://github.com/digitalutsc/private_files_adapter.git /var/www/html/drupal/web/modules/contrib/private_files_adapter
drush en -y private_files_adapter