doc: update README.md env variables to a better format

This commit is contained in:
Tamipes 2026-03-07 13:58:38 +01:00
parent 8a9ae9f735
commit a5da8a4e15

View file

@ -1,6 +1,11 @@
# Env variables: # Env variables:
- BIND_ADDR(default: 0.0.0.0:25565): the address the server should bind to ```bash
- FILTER_CONN(default: '(addr == "10.100.0.1")'): the filter appplied with [evalexpr](https://docs.rs/evalexpr/latest/evalexpr/) # Address the server should bind to
The "context" has the addr variable populated with the address of part of the # BIND_ADDR="0.0.0.0:25565"
handshake packet. Custom filter can be specified, and drop any
connections which match the filter. # Filter appplied with [evalexpr](https://docs.rs/evalexpr/latest/evalexpr/)
# The "context" has the addr variable populated with the address of part of the
# handshake packet. Custom filter can be specified, and drop any
# connections which match the filter.
# FILTER_CONN='(addr == "10.100.0.1")'
```