Go to file
2022-01-03 20:04:26 +00:00
actions Generate certificates if they don't exist 2021-12-08 20:32:10 +01:00
certs Let clients list and revoke certs 2021-12-06 19:14:39 +01:00
config Generate certificates if they don't exist 2021-12-08 20:32:10 +01:00
ezshare Add binaryservice 2021-12-08 05:42:25 +01:00
pb Add binaryservice 2021-12-08 05:42:25 +01:00
protos Add binaryservice 2021-12-08 05:42:25 +01:00
scripts Initial commit 2021-12-03 23:05:29 +01:00
server Fix delete panic 2021-12-08 15:49:02 +01:00
store Add validation to config 2021-12-08 09:53:44 +01:00
.gitignore Add binary handler to http 2021-12-08 06:36:41 +01:00
.woodpecker.yml Remove too old go version from build 2022-01-03 20:53:05 +01:00
Dockerfile Generate certificates if they don't exist 2021-12-08 20:32:10 +01:00
ezshare.example.toml Allow updating config from env 2021-12-08 11:43:41 +01:00
ezshare.minimal.env Generate certificates if they don't exist 2021-12-08 20:32:10 +01:00
go.mod Add proper logging 2021-12-06 07:55:30 +01:00
go.sum Add proper logging 2021-12-06 07:55:30 +01:00
main.go Reduce code duplication in client actions 2021-12-08 15:07:39 +01:00
README.md Add CI badge to README 2022-01-03 20:58:25 +01:00

status-badge

ezshare

Server

Running a server using docker:

# First, build the image
docker build -t ezshare:latest .

Copy config file to /var/ezshare/ezshare.toml (or see ezshare.minimal.env to see how to set config-values using envvars)
# Run the server
docker run --rm -d -v /var/ezshare:/data -e EZSHARE_CONFIG=/data/ezshare.toml ezshare:latest

Client

Compile the client:

go build -o ezshare cmd/ezshare.go

Generate client config, and fetch needed certificates:

./ezshare client login --overwrite "https://ezshare.example.org"
username: admin
password: 
NAME:
   ezshare client - Client commands

USAGE:
   ezshare client command [command options] [arguments...]

COMMANDS:
   get          Get file with id
   upload       Upload file(s)
   delete       Delete file with id
   list         List files
   config-init  Initialize default config
   help, h      Shows a list of commands or help for one command

OPTIONS:
   --addr value  Address of server.
   --help, -h    show help (default: false)

Development

Recompile proto-files

protoc --go_out=. --go-grpc_out=. --go_opt=module=gitea.benny.dog/torjus/ezshare --go-grpc_opt=module=gitea.benny.dog/torjus/ezshare protos/ezshare.proto