Skip to content

Commit d59b201

Browse files
o1eglgitbook-bot
authored andcommittedMar 21, 2021
GitBook: [master] 41 pages modified
1 parent 943f577 commit d59b201

File tree

7 files changed

+61
-10
lines changed

7 files changed

+61
-10
lines changed
 

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Welcome to File Browser's official documentation. Here you can find probably any
88

99
We focus on doing one thing, but doing it well. One of the crucial pieces of File Browser is our community which is always asking us for new features or reporting issues that might happen. We recommend you vividly to check our [GitHub repository](https://github.com/filebrowser/filebrowser).
1010

11-
{% page-ref page="installation/" %}
11+
{% page-ref page="installation.md" %}
1212

1313
{% page-ref page="cli/" %}
1414

‎SUMMARY.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22

33
* [Welcome](README.md)
44
* [Features](features.md)
5-
* [Installation](installation/README.md)
6-
* [Caddy](installation/caddy.md)
5+
* [Installation](installation.md)
76
* [Upgrade from 1.x](upgrade-from-1.x.md)
87
* [Command Line Interface](cli/README.md)
98
* [filebrowser](cli/filebrowser.md)

‎configuration/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,3 @@ Most of the configuration can be understood through our Command Line Interface d
88

99
{% page-ref page="command-runner.md" %}
1010

11-
12-

‎configuration/authentication-method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ filebrowser config set --auth.method=json \
2121
By default, we use [Google's reCAPTCHA](https://developers.google.com/recaptcha/docs/display) service. If you live in China, or want to use other provider, you can change the host with the following command:
2222

2323
```bash
24-
filebrowser config set --recaptcha.host https://recaptcha.net
24+
filebrowser config set --recaptcha.host https://recaptcha.net
2525
```
2626

2727
Where `https://recaptcha.net` is any provider you want.

‎contributing/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,3 @@ To build File Browser is just like any other Go program:
6363
go build
6464
```
6565

66-
67-

‎contributing/ci-and-releases.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,3 @@ We use semantic versioning. For more info check [semver.org](https://semver.org)
1818
2. The artifacts are published to [GitHub Releases](https://github.com/filebrowser/filebrowser/releases).
1919
3. The tagged docker image is published to [hub.docker.com/r/filebrowser/filebrowser](https://hub.docker.com/r/filebrowser/filebrowser/).
2020

21-
22-

‎installation.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# Installation
2+
3+
File Browser is a single binary and can be used as a standalone executable. Although, some might prefer to use it with [Docker](https://www.docker.com/) or [Caddy](https://caddyserver.com/), which is a fantastic web server that enables HTTPS by default. Its installation is quite straightforward independently on which system you want to use.
4+
5+
## Quick Setup
6+
7+
The quickest way for beginners to start using File Browser is by opening your terminal and executing the following commands:
8+
9+
{% tabs %}
10+
{% tab title="Brew" %}
11+
```
12+
brew tap filebrowser/tap
13+
brew install filebrowser
14+
```
15+
{% endtab %}
16+
17+
{% tab title="Unix" %}
18+
```bash
19+
curl -fsSL https://filebrowser.org/get.sh | bash
20+
filebrowser -r /path/to/your/files
21+
```
22+
{% endtab %}
23+
24+
{% tab title="Windows" %}
25+
```bash
26+
iwr -useb https://filebrowser.org/get.ps1 | iex
27+
filebrowser -r /path/to/your/files
28+
```
29+
{% endtab %}
30+
{% endtabs %}
31+
32+
Done! It will bootstrap a database in which all the configurations and users are stored. Now, you can see on your command line the address in which your instance is running. You just need to go to that URL and use the following credentials:
33+
34+
* Username: `admin`
35+
* Password: `admin`
36+
37+
{% hint style="danger" %}
38+
You must change the password and, if you can, the username for the best security possible.
39+
{% endhint %}
40+
41+
Although this is the fastest way to bootstrap an instance, we recommend you to take a look at the possibility of options on [`init`](installation.md) and [`config set`](cli/filebrowser-config-set.md) to make the installation as safe and customized as it can be.
42+
43+
## Docker
44+
45+
File Browser is also available as a Docker image. You can find it on [Docker Hub](https://hub.docker.com/r/filebrowser/filebrowser). The usage is as follows:
46+
47+
```bash
48+
docker run \
49+
-v /path/to/root:/srv \
50+
-v /path/filebrowser.db:/database.db \
51+
-v /path/.filebrowser.json:/.filebrowser.json \
52+
--user $(id -u):$(id -g)
53+
-p 80:80 \
54+
filebrowser/filebrowser
55+
```
56+
57+
By default, we already have a [configuration file with some defaults](https://github.com/filebrowser/filebrowser/blob/master/.docker.json) so you can just mount the root and the database. Although you can overwrite by mounting a directory with a new config file. If you don't already have a database file, make sure to create a new empty file under the path you specified. Otherwise, Docker will create an empty folder instead of an empty file, resulting in an error when mounting the database into the container.
58+

0 commit comments

Comments
 (0)
Please sign in to comment.