digitalutsc / private_files_adapter

此模块使用 Cantaloupe 覆盖私有文件系统的访问控制

安装次数: 1,391

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 6

分支: 0

语言:Ruby

类型:drupal-module

1.0.0-beta5 2024-02-14 01:43 UTC

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 查看器应用补丁

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

创建并设置 JWT 密钥