goBrowser is a simple web application for list, download or share yours files.
$ apt-get install go
cd /opt
git clone https://github.com/xataz/gobrowser.git
cd gobrowser
go build app.go
Run with default option : ./app
- config="": a string, choose a configfile
- forcessl=false: a bool, force https for share link
- forceurl="": a string, force domain for share link
- hiddenfile=false: a bool, enable hidden files
- listen="127.0.0.1:5000": a string, choose listen port and bind address
- path="/home": a string, choose root path for gobrowser
- webroot="": a string, choose webroot (ex : /files for access with http://mydomain/files)
Example :
./app -hiddenfile -listen 0.0.0.0:8080 -path /home/user -webroot /files
app.conf.exemple is a example of configfile, run with :
./app -config app.conf
I create an init script for systemd. Copy it in /lib/systemd/system/gobrowser.service