diff --git a/README.md b/README.md index ab22d7b..d3bb637 100644 --- a/README.md +++ b/README.md @@ -130,6 +130,7 @@ There are a series of available environment variables: | `BEASTHOST` | Required. IP/Hostname of a Mode-S/BEAST provider (dump1090) | `readsb` | | `BEASTPORT` | Optional. TCP port number of Mode-S/BEAST provider (dump1090) | `30005` | | `FR24KEY` | Required. Flightradar24 Sharing Key | | +| `MLAT` | Set to `yes` to enable MLAT (optional) | `no` | | `BIND_INTERFACE` | Optional. Set a bind interface such as `0.0.0.0` to allow access from non-private IP addresses | _none_ | | `VERBOSE_LOGGING` | Set to `true` to enable verbose logging (optional) | `false` | diff --git a/rootfs/etc/cont-init.d/01-fr24feed b/rootfs/etc/cont-init.d/01-fr24feed index 3576f6d..0a47b4f 100755 --- a/rootfs/etc/cont-init.d/01-fr24feed +++ b/rootfs/etc/cont-init.d/01-fr24feed @@ -35,8 +35,13 @@ printf "GMT" > /var/run/s6/container_environment/TZ echo raw="no" echo logmode="1" echo logpath="/var/log" - echo mlat="no" - echo mlat-without-gps="no" + if [ -z "${MLAT}" ]; then + echo mlat="no" + echo mlat-without-gps="no" + else + echo mlat="${MLAT}" + echo mlat-without-gps="${MLAT}" + fi if [ -n "${BIND_INTERFACE}" ]; then echo bind-interface="${BIND_INTERFACE}" fi