An open API service indexing awesome lists of open source software.

https://github.com/kelp404/anya-s3-file-manager

An AWS S3 file manager. It supports keyword search, upload, preview video and archive files into a zip then download it.
https://github.com/kelp404/anya-s3-file-manager

aws-s3 backup nodejs react

Last synced: 2 months ago
JSON representation

An AWS S3 file manager. It supports keyword search, upload, preview video and archive files into a zip then download it.

Awesome Lists containing this project

README

        

# anya-s3-file-manager
An AWS S3 file manager.
It supports archive files into a zip then download it.
And supports keyword search, upload, preview video.

![search](_screenshot/search.png)

## Installation
```bash
git clone https://github.com/kelp404/anya-s3-file-manager.git
cd anya-s3-file-manager
npm install
npm run build
```

## Start
### 1. Update S3 settings.
Open `./config/staging.js` and modify it.
```js
S3: {
KEY: 'Access key ID',
SECRET: 'Secret access key',
BUCKET: 'S3 bucket name',
REGION: 'us-west-2',
},
```
### 2. Launch the website
The server will listen http://localhost:8000 by default.
```bash
npm start
```

## Amazon S3 pricing
https://aws.amazon.com/s3/pricing/

## Create AWS S3 bucket
anya-s3-file-manager uses Access Key to access your S3 bucket, so enable "Block all public access" is ok.
https://aws.amazon.com/getting-started/hands-on/backup-files-to-amazon-s3/

## Create access key
https://objectivefs.com/howto/how-to-get-amazon-s3-keys

Ths policy example:
```
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:*"
],
"Resource": [
"arn:aws:s3:::your-bucket",
"arn:aws:s3:::your-bucket/*"
],
"Condition": {
"ForAnyValue:IpAddress": {
"aws:SourceIp": [
"0.0.0.0/0"
]
}
}
}
]
}
```
You can set ip whitelist at "aws:SourceIp".