An AWS S3 file manager.
It supports archive files into a zip then download it.
And supports keyword search, upload, preview video.
git clone https://github.com/kelp404/anya-s3-file-manager.git
cd anya-s3-file-manager
npm install
npm run build
Open ./config/staging.js
and modify it.
S3: {
KEY: 'Access key ID',
SECRET: 'Secret access key',
BUCKET: 'S3 bucket name',
REGION: 'us-west-2',
},
The server will listen http://localhost:8000 by default.
npm start
https://aws.amazon.com/s3/pricing/
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/
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".