https://github.com/zotero/attachment-proxy
Allows online viewing of Zotero attachments
https://github.com/zotero/attachment-proxy
Last synced: about 1 year ago
JSON representation
Allows online viewing of Zotero attachments
- Host: GitHub
- URL: https://github.com/zotero/attachment-proxy
- Owner: zotero
- License: other
- Created: 2017-06-02T20:17:33.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T02:34:42.000Z (over 3 years ago)
- Last Synced: 2025-04-01T10:13:44.715Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 475 KB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# attachment-proxy
This server allows viewing of attachments in online Zotero libraries. There are two types of attachments supported:
* **Single files (e.g., PDFs):** Streamed directly from S3.
* **Zipped webpage snapshots:** Downloaded from S3 and mounted while user is loading the webpage snapshot. After a while the ZIP file is unmounted and deleted.
### Install
```
git clone https://github.com/zotero/attachment-proxy
cd attachment-proxy
npm install
```
### Configure
```
cp config/sample-config.js config/default.js
```
Configure HMAC `secret` key and S3 `Bucket` (and `accessKeyId` and `secretAccessKey` if not using an IAM role)
### Run
```
npm start
```
### Test
```
npm test
npm run stress
```