Skip to content

nektro/dacite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dacite

loc license discord paypal circleci release goreportcard codefactor

Hash-based image image 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, SHA256, SHA512, RIPEMD160)

Creating External Auth Credentials

In order to get started with Mantle, 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:https://mantle/callback, replacing mantle with any origins you wish Mantle to be usable from, such as example.com or localhost:800.

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

Name Type Default Description
--auth-{IDP-ID}-id string none. Client ID.
--auth-{IDP-ID}-secret string none. Client Secret.

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

Development

Prerequisites

Installing

Run

$ go get -u -v github.com/nektro/dacite

and then make your way to $GOPATH/src/github.com/nektro/dacite/.

Once there, run:

$ ./start.sh

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