mirror of
https://github.com/sigoden/dufs.git
synced 2026-06-07 23:16:54 +03:00
Update README.md and CHANGELOG.md
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user