Skip to content

Commit

Permalink
Merge pull request #24 from sdr-enthusiasts/more-configs
Browse files Browse the repository at this point in the history
More configs
  • Loading branch information
fredclausen authored Oct 26, 2023
2 parents a009111 + 667c2e9 commit 02334c3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,10 @@ of this parameter has the format `<VARIABLE_NAME>=<VALUE>`.

`FAM_GEOID_SOURCE` Sets the `$globalGeoidSource` variable in `require/settings.php`. Default `egm96-15`. Optional.

`FAM_ENABLE_ACARS` Sets the `$globalACARS` variable in `require/settings.php`. Default `false`. Optional.

`FAM_GLOBAL_URL` Sets the `$globalURL` variable in `require/settings.php`. Default is unset. Sets the URL pathing for asset requests. Useful for running FAM behind a proxy. No trailing `/`. Optional.

If you wish to use an external database:

`MYSQLHOSTNAME` Sets the hostname of the mysql/mariadb server.
Expand Down
12 changes: 12 additions & 0 deletions rootfs/etc/s6-overlay/scripts/03-settings
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,16 @@ search="\$globalGeoidSource = '"
replace="\$globalGeoidSource = '${FAM_GEOID_SOURCE}';"
sed -i "/${search}/c\\${replace}" /var/www/flightairmap/htdocs/require/settings.php

if chk_enabled "${FAM_ENABLE_ACARS}"; then
search="\$globalACARS = FALSE;"
replace="\$globalACARS = TRUE;"
sed -i "/${search}/c\\${replace}" /var/www/flightairmap/htdocs/require/settings.php
fi

if chk_enabled "${FAM_GLOBAL_URL}"; then
search="\$globalURL = '"
replace="\$globalURL = '${FAM_GLOBAL_URL}';"
sed -i "/${search}/c\\${replace}" /var/www/flightairmap/htdocs/require/settings.php
fi

echo ""

0 comments on commit 02334c3

Please sign in to comment.