Compare commits

...
8 Commits
Author SHA1 Message Date
junvandGitHub 4c2cb0ddaf Enable caddy file server (#246)
* Enable caddy file server by default

* Update readme
2025-03-07 13:01:28 +11:00
junv-repo-bot e3beaca19e Update version 2025-03-06 12:35:07 +00:00
junv 9fb6123520 Urgent bug fix 2025-03-06 23:26:28 +11:00
junv-repo-bot 4394fde881 Update version 2025-03-06 12:17:53 +00:00
junv-repo-bot 21fbcad568 Update version 2025-03-06 12:07:22 +00:00
junvandGitHub 60a5a77193 Update README.md 2025-03-06 23:04:04 +11:00
junv-repo-bot 99c036f46c Update version 2025-03-06 11:51:44 +00:00
junvandGitHub ea0dbb9e14 Add logic to allow user disable filebrowser (#245) 2025-03-06 22:49:55 +11:00
8 changed files with 33 additions and 5 deletions
+1 -1
View File
@@ -1 +1 @@
6.0.1
6.1.4
+7
View File
@@ -9,6 +9,7 @@ redir /ui / 301
redir /ui/ / 301
redir /rclone /rclone/ 301
redir /files /files/ 301
redir /ro /ro/ 301
reverse_proxy /rpc 127.0.0.1:6800
reverse_proxy /jsonrpc 127.0.0.1:6800
@@ -23,6 +24,12 @@ route /files/* {
reverse_proxy 127.0.0.1:8080
}
route /ro/* {
uri strip_prefix /ro
root * /data
file_server browse
}
route /ping {
respond "app version: {env.APP_VERSION}"
}
+2 -1
View File
@@ -34,6 +34,7 @@ ENV XDG_CONFIG_HOME=/app/.caddy/config
ENV XDG_CACHE_HOME=/app/.cache
ENV RCLONE_CONFIG_BASE64=""
ENV ENABLE_APP_CHECKER=true
ENV ENABLE_FILEBROWSER=true
ENV CADDY_LOG_LEVEL=INFO
ENV RCLONE_AUTO_UPLOAD_PROVIDER=
ENV RCLONE_AUTO_UPLOAD_REMOTE_PATH=/downloads
@@ -41,7 +42,7 @@ ENV RCLONE_AUTO_UPLOAD_FILE_MIN_SIZE=1K
ENV RCLONE_AUTO_UPLOAD_FILE_MAX_SIZE=100G
ENV FIX_DATA_VOLUME_PERMISSIONS=false
ADD install.sh aria2c.sh caddy.sh Procfile init.sh start.sh rclone.sh new-version-checker.sh APP_VERSION /app/
ADD install.sh aria2c.sh caddy.sh filebrowser.sh Procfile init.sh start.sh rclone.sh new-version-checker.sh APP_VERSION /app/
ADD conf /app/conf
ADD Caddyfile SecureCaddyfile HerokuCaddyfile /usr/local/caddy/
+1 -1
View File
@@ -1,5 +1,5 @@
caddy: /app/caddy.sh
filebrowser: /app/filebrowser -p 8080 -d /app/filebrowser.db -r /data -b /files
filebrowser: /app/filebrowser.sh
aria2c: /app/aria2c.sh
rclone: /app/rclone.sh
newer_version_checker: /app/new-version-checker.sh
+3 -1
View File
@@ -72,6 +72,7 @@ File Browser
```
* Aria2: <http://yourip:8000>
* Caddy File Server(Read Only) <http://yourip:8000/ro>
* FileManger: <http://yourip:8000/files>
* Rclone: <http://yourip:8000/rclone>
* Please use `admin`/`admin` as username and password to login `Filebrowser` for the first time. And use `user`/`password` to login `Rclone` if you don't update `ARIA2_USER` and `ARIA2_PWD`
@@ -124,7 +125,8 @@ Then simply run `docker-compose up -d`, that's it!
| ENV | Description|
|:---|:---|
| `ENABLE_AUTH` | Whether to enable Basic auth |
| `ENABLE_RCLONE` | Whether to disable Rclone, if you running this container offline or do not have stable connection to Github, please set to `false`
| `ENABLE_RCLONE` | Whether to disable Rclone, if you running this container offline or do not have stable connection to Github, please set to `false` |
| `ENABLE_FILEBROWSER` | Whether to disable Filebrowser, set it to `false` to disable it, by default it's enabled |
| `ARIA2_USER` | Basic Auth username, Rclone GUI uses it as well. |
| `ARIA2_PWD` | Basic Auth password, Rclone GUI uses it as well. |
| `ARIA2_EXTERNAL_PORT` | The Aria2 port which exposed to public to access to |
+6
View File
@@ -27,6 +27,12 @@ route /files/* {
reverse_proxy 127.0.0.1:8080
}
route /ro/* {
uri strip_prefix /ro
root * /data
file_server browse
}
route /ping {
respond "app version: {env.APP_VERSION}"
}
Executable
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash -eu
echo "Checking if FileBrowser is enabled..."
if [ "$ENABLE_FILEBROWSER" = "true" ]; then
echo "Starting FileBrowser..."
/app/filebrowser -p 8080 -d /app/filebrowser.db -r /data -b /files
else
echo "FileBrowser is disabled. Set ENABLE_FILEBROWSER=true to enable it."
sleep 3650d
fi
+2 -1
View File
@@ -24,7 +24,8 @@ fi
chmod +x /app/caddy.sh \
/app/rclone.sh \
/app/aria2c.sh
/app/aria2c.sh \
/app/filebrowser.sh
echo "[INFO] Give caddy permissions to use low ports"
setcap cap_net_bind_service=+ep /usr/local/bin/caddy