Giter VIP home page Giter VIP logo

dacite's Introduction

Dacite

loc license discord circleci release goreportcard codefactor downloads issuehunt docker_pulls docker_stars

Hash-based file storage and upload.

Getting Started

These instructions will help you get the project up and running and are required before moving on.

Flags

Name Type Default Description
--port int 8000 Port to bind web server to.
--root string none. Path of root directory to store files.
--algo string SHA1 Hash algo to use for files. (One of MD4, MD5, SHA1, SHA224, SHA256, SHA384, SHA512, MD5, SHA1, RIPEMD160, SHA3_224, SHA3_256, SHA3_384, SHA3_512, SHA512_224, SHA512_256, BLAKE2s_256, BLAKE2b_256, BLAKE2b_384, BLAKE2b_512, zeebo/blake3)
--max-file-size int 20 Size in MB to limit user uploads to.
--max-folder-depth int 6 Max depth of folders to make in /data. 0 for hash_len/2.

Creating External Auth Credentials

In order to get started with Dacite, you will need to create an app on your Identity Provider(s) of choice. See the nektro/go.oauth2 docs for more detailed info on this process on where to go and what data you'll need.

Here you can also fill out a picture and description that will be displayed during the authorization of users on your chosen Identity Provider. When prompted for the "Redirect URI" during the app setup process, the URL to use will be http://dacite/callback, replacing dacite with any origins you wish Dacite to be usable from, such as example.com or localhost:8000.

Once you have finished the app creation process you should now have a Client ID and Client Secret. These are passed into Dacite through flags as well.

Name Type Default Description
--oauth2-client string none. Client config in the form `for

The Identity Provider IDs can be found from the table in the nektro/go.oauth2 documentation.

Development

Prerequisites

Installing

Run

$ git clone https://github.com/nektro/dacite
$ cd ./dacite/
$ go get -v .
$ docker-compose up

Deployment

Pre-compiled binaries can be obtained from https://github.com/nektro/dacite/releases/latest.

Or you can build from source:

$ ./scripts/build_all.sh

Built With

Contact

License

Apache 2.0

dacite's People

Contributors

nektro avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mavna corentinb

dacite's Issues

Binary file support

I just found this project and wanted to try it out but got stuck on the External Auth Credentials process.

Does this support binary files right now?

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.