Update README.md and CHANGELOG.md

This commit is contained in:
sigoden
2026-04-25 22:05:16 +08:00
parent 5e88f49673
commit 626016148b
2 changed files with 18 additions and 2 deletions
+8 -1
View File
@@ -2,17 +2,24 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
## [0.46.0] - 2026-03-04 ## [0.46.0] - 2026-04-25
### Bug Fixes ### Bug Fixes
- Some search results missing due to broken symlinks ([#665](https://github.com/sigoden/dufs/issues/665)) - Some search results missing due to broken symlinks ([#665](https://github.com/sigoden/dufs/issues/665))
- Escape filename in ?simple output ([#669](https://github.com/sigoden/dufs/issues/669)) - Escape filename in ?simple output ([#669](https://github.com/sigoden/dufs/issues/669))
- Ensure symlink inside serve root ([#670](https://github.com/sigoden/dufs/issues/670)) - Ensure symlink inside serve root ([#670](https://github.com/sigoden/dufs/issues/670))
- Tweak auth logic ([#689](https://github.com/sigoden/dufs/issues/689))
- Http range underflow ([#690](https://github.com/sigoden/dufs/issues/690))
- Escape control chars in logged URI and headers ([#691](https://github.com/sigoden/dufs/issues/691))
### Features ### Features
- Add option --allow-hash to allow/disallow file hashing ([#657](https://github.com/sigoden/dufs/issues/657)) - Add option --allow-hash to allow/disallow file hashing ([#657](https://github.com/sigoden/dufs/issues/657))
- Support `?json` on file path ([#686](https://github.com/sigoden/dufs/issues/686))
- Support customizable 404 page ([#688](https://github.com/sigoden/dufs/issues/688))
- Enhence log format ([#692](https://github.com/sigoden/dufs/issues/692))
- Webui confirm on exit while uploading ([#693](https://github.com/sigoden/dufs/issues/693))
### Refactor ### Refactor
+10 -1
View File
@@ -303,11 +303,18 @@ The log format can use following variables.
| $http_ | arbitrary request header field. examples: $http_user_agent, $http_referer | | $http_ | arbitrary request header field. examples: $http_user_agent, $http_referer |
The default log format is `'$remote_addr "$request" $status'`. The default log format is `'$time_iso8601 $log_level - $remote_addr "$request" $status`.
``` ```
2022-08-06T06:59:31+08:00 INFO - 127.0.0.1 "GET /" 200 2022-08-06T06:59:31+08:00 INFO - 127.0.0.1 "GET /" 200
``` ```
A json log format is also supported.
```
dufs --log-format '{"time":"$time_local","addr":"$remote_addr","uri":"$request_uri", "method":"$request_method","status":$status}'
{"time":"2022-08-06T06:59:31+08:00","addr":"127.0.0.1","uri":"/", "method":"GET","status":200}
```
Disable http log Disable http log
``` ```
dufs --log-format='' dufs --log-format=''
@@ -415,6 +422,8 @@ Your assets folder must contains a `index.html` file.
- `__INDEX_DATA__`: directory listing data - `__INDEX_DATA__`: directory listing data
- `__ASSETS_PREFIX__`: assets url prefix - `__ASSETS_PREFIX__`: assets url prefix
> A customized 404.html page is also supported.
</details> </details>
## License ## License