Coder Social home page Coder Social logo

sree's Introduction

Sree

S3 client for human beings

Greenland snapshot

Sree enables you to easily manage your files through Amazon S3 protocol. Simply configure your keys and you are good to go.

Installation

> git clone https://github.com/cannium/Sree.git
> cd Sree
> sudo pip install flask requests
> python app.py

Then open your favorate browser and visit http://127.0.0.1:5000

Configuration

Configuration

  • S3 Endpoint: Defaults to Amazon's S3 service and surely you could use your own endpoint. If protocol part is ommitted, it defaults to usehttps
  • Region: The region you would like to use
  • Access Key ID & Secret Access Key: Key and secret generated by service provider

Configurations are saved in your browser and not disclosed to anyone else.

Technical Details

  • In order to view your files in browser, Sree configures bucket CORS for you when creating buckets. See Cross-Origin Resource Sharing (CORS) for more details.
  • Files uploaded via Sree are set as public-read as default so as to be downloadable. Future versions of Sree will make file ACLs configurable.(Supported now!)

Contributing

Contributions are welcome via pull requests and issues.

License

Both MIT and GPLv2

Authors

Can ZHANG

Xingyi WU

Yuanying MA

sree's People

Contributors

cannium avatar thesues avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sree's Issues

s3cmd env works but configuration via web ui does not

I have a .config file I'm using with s3cmd and I can list my buckets fine, but get invalid permissions after configuring via web UI (using custom endpoint with Ceph).

Is there something I would be missing here configuration wise?

Use Environment Variables to configure app

Is there a way that one can use environment variables to configure the application?

For example:

docker run -it --rm -p 5000:5000 \
  -e ENDPOINT=https://s3.example.com/ \
  -e REGION=us1 \
  -e ACCESSKEY=123456789 \
  -e SECRETKEY=123456789abc \
  cannium/Sree

Which will then automatically configure the respective values.

Failed to list objects: Network Failure

request:

curl 'http://10.100.237.234:31200/ceph-bkt?delimiter=%2F&prefix=' \
  -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36' \
  -H 'Referer: http://10.100.237.234:31100/' \
  -H 'X-Amz-Date: Fri, 19 Feb 2021 18:07:25 GMT' \
  -H 'X-Amz-User-Agent: aws-sdk-js/2.3.2' \
  -H 'Authorization: AWS 6892H3WOA7ZYQAYWT0N9:yhs+LtdwPJJpqFzImpLwq9KeewI=' \
  --compressed

But if it is executed on postman, the result can be returned normally.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.