Skip to content

Commit

Permalink
Add MLAT enable/disable to environment variables (#167)
Browse files Browse the repository at this point in the history
* Update Dockerfile

* Update 01-fr24feed

* Update 01-fr24feed

* Update Dockerfile

* Update README.md

* Update 01-fr24feed
  • Loading branch information
hypeARM authored Jul 26, 2023
1 parent 13abae2 commit a64d7ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |

Expand Down
9 changes: 7 additions & 2 deletions rootfs/etc/cont-init.d/01-fr24feed
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a64d7ce

Please sign in to comment.