mirror of
https://github.com/sigoden/dufs.git
synced 2026-04-09 00:59:02 +03:00
chore: improve readme
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
Dufs is a distinctive utility file server that supports static serving, uploading, searching, accessing control, webdav...
|
Dufs is a distinctive utility file server that supports static serving, uploading, searching, accessing control, webdav...
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
@@ -268,12 +268,12 @@ dufs --log-format '$remote_addr $remote_user "$request" $status' -a /@admin:admi
|
|||||||
Dufs allows users to customize the UI with their own assets.
|
Dufs allows users to customize the UI with their own assets.
|
||||||
|
|
||||||
```
|
```
|
||||||
dufs --assets my-assets
|
dufs --assets my-assets-dir/
|
||||||
```
|
```
|
||||||
|
|
||||||
You assets folder must contains a entrypoint `index.html`.
|
You assets folder must contains a entrypoint `index.html` file.
|
||||||
|
|
||||||
`index.html` can use the following planceholder to access internal data.
|
`index.html` can use the following placeholder variable to retrieve internal data.
|
||||||
|
|
||||||
- `__INDEX_DATA__`: directory listing data
|
- `__INDEX_DATA__`: directory listing data
|
||||||
- `__ASSERTS_PREFIX__`: assets url prefix
|
- `__ASSERTS_PREFIX__`: assets url prefix
|
||||||
|
|||||||
Reference in New Issue
Block a user