chore: release v0.46.0 (#675)

This commit is contained in:
sigoden
2026-05-07 09:44:15 +08:00
committed by GitHub
parent 82a8865b9f
commit b69946df23
7 changed files with 115 additions and 171 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