File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66:PORT
77
8- basicauth / {
8+ @protected path / /index.html /css/* /js/* /ro /ro/* /jsonrpc
9+
10+ basicauth @protected {
911 ARIA2_USER ARIA2_PWD_ENCRYPT
1012}
1113
1214redir /ui / 301
1315redir /ui/ / 301
1416redir /rclone /rclone/ 301
1517redir /files /files/ 301
18+ redir /ro /ro/ 301
1619
1720reverse_proxy /jsonrpc 127.0.0.1:6800
1821
@@ -26,6 +29,14 @@ route /files/* {
2629 reverse_proxy 127.0.0.1:8080
2730}
2831
32+ route /ro/* {
33+ uri strip_prefix /ro
34+ root * /data
35+ file_server {
36+ browse "{$CADDY_FILE_SERVER_BROWSE_HTML}"
37+ }
38+ }
39+
2940route /ping {
3041 respond "app version: {env.APP_VERSION}"
3142}
Original file line number Diff line number Diff line change 55 output stderr
66}
77
8- basicauth / {
8+ @protected path / /index.html /css/* /js/* /ro /ro/* /jsonrpc
9+
10+ basicauth @protected {
911 ARIA2_USER ARIA2_PWD_ENCRYPT
1012}
1113
1214redir /ui / 301
1315redir /ui/ / 301
1416redir /rclone /rclone/ 301
1517redir /files /files/ 301
18+ redir /ro /ro/ 301
1619
1720reverse_proxy /rpc 127.0.0.1:6800
1821reverse_proxy /jsonrpc 127.0.0.1:6800
You can’t perform that action at this time.
0 commit comments