scientist-softserv / scholarworks

Cal State Hyrax
0 stars 0 forks source link

Cal State Serverless IIIF & S3 #25

Closed aprilrieger closed 1 month ago

aprilrieger commented 5 months ago

SOW: https://docs.google.com/document/d/1hVD2QW2tvyR0r9YpqEw7kTYNydmCiFYkxX5wRDBYBwI/edit

Outline of Work:

SERVERLESS_IIIF_URL=https://6cff3iwnwia62qiqak74dkfsku0fwjsd.lambda-url.us-west-2.on.aws/iiif/2

on digital_archives_hyrax_0 Apache configuration at /etc/httpd/vhost.d/archives.calstate.edu.conf

on hyrax_0 & hyrax_1 Apache configuration at /etc/httpd/vhost.d/scholarworks.conf

sudo systemctl restart httpd

aprilrieger commented 5 months ago

Bucket: region: us-west-2 name: hyrax-fcrepo-cache AWS direct link once logged in under csu role

Lambda Function: region: us-west-2 function url: https://6cff3iwnwia62qiqak74dkfsku0fwjsd.lambda-url.us-west-2.on.aws/ AWS direct link once logged in under csu role

ShanaLMoore commented 5 months ago

This comment may be useful: https://docs.google.com/document/d/1hVD2QW2tvyR0r9YpqEw7kTYNydmCiFYkxX5wRDBYBwI/edit?disco=AAABNlusXuQ

bkiahstroud commented 2 months ago

The PR with the code update was merged on Aug 8

aprilrieger commented 1 month ago

I added the env variable to production hyrax_0 and hyrax_1 added env var to: /etc/httpd/vhost.d/scholarworks.conf SetEnv SERVERLESS_IIIF_URL https://hyrax-fcrepo-cache.s3.us-west-2.amazonaws.com

and added in the worker /var/www/hyrax/.env SERVERLESS_IIIF_URL=https://hyrax-fcrepo-cache.s3.us-west-2.amazonaws.com SERVERLESS_IIIF_URL=https://hyrax-fcrepo-cache.s3.us-west-2.amazonaws.com/iiif/2

Wehn testing to see if the iiif objs are available form the manifest https://6cff3iwnwia62qiqak74dkfsku0fwjsd.lambda-url.us-west-2.on.aws/iiif/2/86cd80b40ff6eaa062339ab82655dcfa/full/600,/0/default.jpg When navigating to image from manifest I was given a not found error.

aprilrieger commented 1 month ago

New PR up for client to review and deploy to production so we can add the env var and restart the server for the changes to take effect. https://dev.azure.com/csu-co/Systemwide%20Digital%20Library%20Services/_git/ScholarWorks/pullrequest/305