Skip to content

Commit

Permalink
Merge pull request #169 from janwillemvd/add-support-for-app-trusted-…
Browse files Browse the repository at this point in the history
…proxies

Add support for APP_TRUSTED_PROXIES
  • Loading branch information
tiredofit authored Mar 21, 2024
2 parents 4e4e347 + 5e454d8 commit c73d563
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ Be sure to view the following repositories to understand all the customizable op
| `ADMIN_PASS` | Administrator Password - Needed for Logging in | | x |
| `APPLICATION_NAME` | Change default application name - Default `Freescout` | `freescout` | |
| `APP_PROXY` | Allow Application to use a proxy for fetching modules | | |
| `APP_TRUSTED_PROXIES` | Comma separated list of trusted proxies, i.e. `192.168.1.1,192.168.1.2,192.168.1.3` | | |
| `APP_NEW_FETCHING_LIBRARY` | Sets FreeScout's new_fetching_library config option | `FALSE` | |
| `APP_X_FRAME_OPTIONS` | Allow to embed via iframes `TRUE` `FALSE` `DENY` `ALLOW FROM example.org` | `TRUE`
| `DB_TYPE` | Type of the Database. Currently supported are `mysql` and `pgsql` | `mysql` | |
Expand Down
4 changes: 4 additions & 0 deletions install/etc/cont-init.d/30-freescout
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ else
echo "APP_PROXY=${APP_PROXY}" | silent sudo -u "${NGINX_USER}" tee -a "${NGINX_WEBROOT}"/.env
fi

if [ -n "${APP_TRUSTED_PROXIES}" ] ; then
echo "APP_TRUSTED_PROXIES=${APP_TRUSTED_PROXIES}" | silent sudo -u "${NGINX_USER}" tee -a "${NGINX_WEBROOT}"/.env
fi

if var_true "${APP_DEBUG}" || var_true "${DISPLAY_ERRORS}" ; then
echo "APP_DEBUG=true" | silent sudo -u "${NGINX_USER}" tee -a "${NGINX_WEBROOT}"/.env
else
Expand Down

0 comments on commit c73d563

Please sign in to comment.