Simple http file browser
Switch branches/tags
Nothing to show
Clone or download
xataz Merge pull request #13 from kidburglar/implementation-of-json-for-sha…
…re-files

Feature(Implement JSON storage for sharefiles)
Latest commit 2734836 Jan 24, 2018

README.md

goBrowser

What goBrowser

goBrowser is a simple web application for list, download or share yours files.

Build Status

Screenshot

File browser

Share Listing

How to install

Install go

$ apt-get install go

Git clone and compile

cd /opt
git clone https://github.com/xataz/gobrowser.git
cd gobrowser
go build app.go

Run

Run with default option : ./app

Argument

  • 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

configfile

app.conf.exemple is a example of configfile, run with :

./app -config app.conf

Init script

I create an init script for systemd. Copy it in /lib/systemd/system/gobrowser.service