From 15ebe3fc4ab996d05a768467db2132f282f2b251 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Thu, 20 Jul 2017 09:21:24 +0100 Subject: [PATCH] readme update [ci skip] --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index 0e69ac90..9a904a28 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,8 @@ filemanager provides a file managing interface within a specified directory and # Table of contents + [Getting started](#getting-started) + - [Caddy](#caddy) + - [Standalone](#standalone) + [Features](#features) - [Users](#users) - [Search](#search) @@ -29,6 +31,10 @@ The easiest way to get started is using this with Caddy web server. You just nee ## Standalone +You can use filemanager as a standalone executable. You just need to download it from the [releases page](https://github.com/hacdias/filemanager/releases), where you can find multiple releases. The 'latest' always corresponds to the latest commit made to the master branch so it might not be stable. + +You can either use flags or a JSON configuration file, which should have the following appearance: + ```json { "port": 80, @@ -44,6 +50,27 @@ The easiest way to get started is using this with Caddy web server. You just nee } ``` +The `scope`, `allowCommands`, `allowEdit`, `allowNew` and `commands` options are the defaults for new users. To set a configuration file, you will need to pass the path with a flag, like this: `filemanager --config=/path/to/config.json`. + +Otherwise, you may not want to use a configuration file, which can be done using the following flags: + +``` +-allow-commands + Default allow commands option (default true) +-allow-edit + Default allow edit option (default true) +-allow-new + Default allow new option (default true) +-commands string + Space separated commands available for new users (default "git svn hg") +-database string + Database path (default "./filemanager.db") +-port string + HTTP Port (default "80") +-scope string + Defualt scope for new users (default ".") +``` + # Features Easy login system.