Install Filebrowser

Install file browser to your server:

curl -fsSL https://raw.githubusercontent.com/filebrowser/get/master/get.sh | bash

Have a quick test:

filebrowser -a 0.0.0.0 -r /path/to/your/files

Access your server and try to login in.

Username: admin
Password: admin

Create Your Own Config

Write your config file:

sudo mkdir /etc/filebrowser/
sudo vim /etc/filebrowser/.filebrowser.yaml

Write something like this:

port: 8080
address: 0.0.0.0
root: /path/to/your/file
database: /etc/filebrowser/filebrowser.db

Create Service

Write a service file:

sudo vim /etc/systemd/system/filebrowser.service

Write something like this:

[Unit]
Description=File Browser Service
After=network.target

[Service]
Type=simple
Restart=on-failure
RestartSec=5s
ExecStart=filebrowser

[Install]
WantedBy=multi-user.target

Start and enable it:

sudo systemctl start filebrowser.service
sudo systemctl enable filebrowser.service

Make sure to change your access password!