Skip to content

Commit

Permalink
Release 1.17.39 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Oct 23, 2023
1 parent 53fd6cd commit bf9fb23
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 1.17.39 2023-10-23 <dave at tiredofit dot ca>

### Added
- Freescout 1.8.105
- Add new APP_X_FRAME_OPTIONS environment variable to support embedding in Iframes


## 1.17.38 2023-10-13 <dave at tiredofit dot ca>

### Added
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ LABEL maintainer="Dave Conroy (github.com/tiredofit)"

ARG FREESCOUT_VERSION

ENV FREESCOUT_VERSION=${FREESCOUT_VERSION:-"1.8.104"} \
ENV FREESCOUT_VERSION=${FREESCOUT_VERSION:-"1.8.105"} \
FREESCOUT_REPO_URL=https://github.com/freescout-helpdesk/freescout \
NGINX_WEBROOT=/www/html \
NGINX_SITE_ENABLED=freescout \
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ Be sure to view the following repositories to understand all the customizable op
| `APPLICATION_NAME` | Change default application name - Default `Freescout` | `freescout` | |
| `APP_PROXY` | Allow Application to use a proxy for fetching modules | | |
| `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` | |
| `DB_PGSQL_SSL_MODE` | Postgresql TLS Mode | `prefer` | |
| `DB_HOST` | Host or container name of the Databse Server e.g. `freescout-db` | | x |
Expand Down
13 changes: 7 additions & 6 deletions install/assets/defaults/30-freescout
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/command/with-contenv bash

DB_TYPE=${DB_TYPE:-"mysql"}
DB_PORT=${DB_PORT:-3306}
DB_PGSQL_SSL_MODE=${DB_PGSQL_SSL_MODE:-"prefer"}
APPLICATION_NAME=${APPLICATION_NAME:-"Freescout"}
ADMIN_FIRST_NAME=${ADMIN_FIRST_NAME:-"Admin"}
ADMIN_LAST_NAME=${ADMIN_LAST_NAME:-"User"}
APPLICATION_NAME=${APPLICATION_NAME:-"Freescout"}
APP_NEW_FETCHING_LIBRARY=${APP_NEW_FETCHING_LIBRARY:-"FALSE"}
APP_X_FRAME_OPTIONS=:-"TRUE"}
DB_PGSQL_SSL_MODE=${DB_PGSQL_SSL_MODE:-"prefer"}
DB_PORT=${DB_PORT:-3306}
DB_TYPE=${DB_TYPE:-"mysql"}
ENABLE_AUTO_UPDATE=${ENABLE_AUTO_UPDATE:-"TRUE"}
SETUP_TYPE=${SETUP_TYPE:-"AUTO"}
APP_NEW_FETCHING_LIBRARY=${APP_NEW_FETCHING_LIBRARY:-"FALSE"}
SETUP_TYPE=${SETUP_TYPE:-"AUTO"}
6 changes: 6 additions & 0 deletions install/etc/cont-init.d/30-freescout
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ if grep -q "APP_URL" "${NGINX_WEBROOT}"/.env > /dev/null 2>&1; then
sed -i --follow-symlinks "s#APP_NEW_FETCHING_LIBRARY=.*#APP_NEW_FETCHING_LIBRARY=${APP_NEW_FETCHING_LIBRARY,,}#g" "${NGINX_WEBROOT}"/.env
fi

if ! grep -q "APP_X_FRAME_OPTIONS" "${NGINX_WEBROOT}"/.env > /dev/null 2>&1; then
echo "APP_X_FRAME_OPTIONS=${APP_X_FRAME_OPTIONS}" | sudo -u "${NGINX_USER}" tee -a "${NGINX_WEBROOT}"/.env
else
sed -i --follow-symlinks "s#APP_X_FRAME_OPTIONS=.*#APP_X_FRAME_OPTIONS=${APP_X_FRAME_OPTIONS}#g" "${NGINX_WEBROOT}"/.env
fi

else
print_info "Skipping Auto configuration and using in place .env"
fi
Expand Down

0 comments on commit bf9fb23

Please sign in to comment.