Browse Source
Co-authored-by: Steven Briscoe <me@stevenbriscoe.com> Co-authored-by: Mayank Chhabra <mayank@umbrel.com>main
Steven Briscoe
2 years ago
committed by
GitHub
4 changed files with 66 additions and 0 deletions
@ -0,0 +1,20 @@ |
|||||
|
version: "3.7" |
||||
|
|
||||
|
services: |
||||
|
app_proxy: |
||||
|
environment: |
||||
|
APP_HOST: file-browser_server_1 |
||||
|
APP_PORT: 80 |
||||
|
|
||||
|
server: |
||||
|
image: filebrowser/filebrowser:v2.22.4@sha256:8a30269612a3bc8453ab29641c3e3d7ad141a8d142efc2cd78196281b1035537 |
||||
|
user: "1000:1000" |
||||
|
restart: on-failure |
||||
|
volumes: |
||||
|
- ${APP_DATA_DIR}/data/filebrowser.db:/database/filebrowser.db |
||||
|
- ${UMBREL_ROOT}/data/storage:/data |
||||
|
environment: |
||||
|
- FB_PORT=80 |
||||
|
- FB_DATABASE=/database/filebrowser.db |
||||
|
- FB_ROOT=/data |
||||
|
- FB_NOAUTH=true |
@ -0,0 +1,22 @@ |
|||||
|
UMBREL_DATA_DIR="${UMBREL_ROOT}/data" |
||||
|
UMBREL_DATA_STORAGE_DIR="${UMBREL_DATA_DIR}/storage" |
||||
|
DESIRED_OWNER="1000:1000" |
||||
|
|
||||
|
if [[ ! -d "${UMBREL_DATA_STORAGE_DIR}" ]]; then |
||||
|
mkdir -p "${UMBREL_DATA_STORAGE_DIR}" |
||||
|
fi |
||||
|
|
||||
|
filebrowser_correct_permission() { |
||||
|
local -r path="${1}" |
||||
|
|
||||
|
if [[ -d "${path}" ]]; then |
||||
|
owner=$(stat -c "%u:%g" "${path}") |
||||
|
|
||||
|
if [[ "${owner}" != "${DESIRED_OWNER}" ]]; then |
||||
|
chown "${DESIRED_OWNER}" "${path}" |
||||
|
fi |
||||
|
fi |
||||
|
} |
||||
|
|
||||
|
filebrowser_correct_permission "${UMBREL_DATA_DIR}" |
||||
|
filebrowser_correct_permission "${UMBREL_DATA_STORAGE_DIR}" |
@ -0,0 +1,24 @@ |
|||||
|
manifestVersion: 1 |
||||
|
id: file-browser |
||||
|
category: Files |
||||
|
name: File Browser |
||||
|
version: "2.22.4" |
||||
|
tagline: Browse and manage the files you download on your Umbrel |
||||
|
description: >- |
||||
|
File Browser lets you upload, delete, preview, rename and edit your folders and files. |
||||
|
|
||||
|
|
||||
|
Easily manage files in the Umbrel's storage folder where your downloads from apps like Transmission, Sonarr, Radarr, and Lidarr are currently held. |
||||
|
developer: File Browser |
||||
|
website: https://filebrowser.org/ |
||||
|
dependencies: [] |
||||
|
repo: https://github.com/filebrowser/filebrowser |
||||
|
support: https://github.com/filebrowser/filebrowser/issues |
||||
|
port: 7421 |
||||
|
gallery: |
||||
|
- 1.jpg |
||||
|
- 2.jpg |
||||
|
- 3.jpg |
||||
|
path: "/files/" |
||||
|
deterministicPassword: false |
||||
|
torOnly: false |
Loading…
Reference in new issue