Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable caddy file server #246

Merged
merged 2 commits into from
Mar 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}"
}
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down
6 changes: 6 additions & 0 deletions SecureCaddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
Expand Down
Loading