Skip to content

Commit

Permalink
Add BIND_INTERFACE env var
Browse files Browse the repository at this point in the history
Allows setting the `bind-interface` config option in fr24feed.ini
to allow access from non-private IP addresses. Can be set to
`0.0.0.0` to allow access from any IP address (warning, may be
insecure). If env var is not set (default), the config option
will not be added to the config file, which is a secure default.

Fixes sdr-enthusiasts#58
  • Loading branch information
optiz0r committed Jul 16, 2022
1 parent 1cebbbb commit 3ea5efc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,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 | |
| `BIND_INTERFACE` | Optional. Set a bind interface such as `0.0.0.0` to allow access from non-private IP addresses | _none_ |
| `TZ` | Your local timezone (optional) | `GMT` |
| `VERBOSE_LOGGING` | Set to `true` to enable verbose logging (optional) | `false` |

Expand Down
3 changes: 3 additions & 0 deletions rootfs/etc/cont-init.d/01-fr24feed
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ fi
echo logpath="/var/log"
echo mlat="no"
echo mlat-without-gps="no"
if [ -n "${BIND_INTERFACE}" ]; then
echo bind-interface="${BIND_INTERFACE}"
fi
} > /etc/fr24feed.ini

# prepare directories (from /usr/lib/fr24/create_missing_directories.sh)
Expand Down

0 comments on commit 3ea5efc

Please sign in to comment.