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
+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 |
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
```
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
```
dufs --log-format=''
@@ -415,6 +422,8 @@ Your assets folder must contains a `index.html` file.
- `__INDEX_DATA__`: directory listing data
- `__ASSETS_PREFIX__`: assets url prefix
> A customized 404.html page is also supported.
</details>
## License