Hash-based image image storage and upload.
These instructions will help you get the project up and running and are required before moving on.
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 ) |
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.
- The Go Language 1.12+ (https://golang.org/dl/)
- GCC on your PATH (for the https://github.com/mattn/go-sqlite3 installation)
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
Pre-compiled binaries can be obtained from https://github.com/nektro/dacite/releases/latest.
Or you can build from source:
$ ./scripts/build_all.sh
- https://github.com/gorilla/sessions
- https://github.com/nektro/dacite/statik
- https://github.com/nektro/go-util
- https://github.com/nektro/go.dbstorage
- https://github.com/nektro/go.etc
- https://github.com/nektro/go.oauth2
- https://github.com/rakyll/statik
- https://github.com/spf13/pflag
- [email protected]
- Meghan#2032 on discordapp.com
- https://twitter.com/nektro
Apache 2.0