Skip to content

Commit

Permalink
Release 6.4.5 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Nov 9, 2023
1 parent 93ffd85 commit 07ebb51
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 6.4.5 2023-11-09 <dave at tiredofit dot ca>

### Added
- Add NGINX_WEBROOT_SUFFIX to allow adding custom directories for the root command in nginx


## 6.4.4 2023-10-24 <dave at tiredofit dot ca>

### Changed
Expand Down
8 changes: 7 additions & 1 deletion install/etc/cont-init.d/10-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ if [ ! -f "/tmp/.container/container-restart" ] ; then
if var_true "${NGINX_ENABLE_APPLICATION_CONFIGURATION}"; then
nginx_configure_site_default
if var_true "${NGINX_ENABLE_CREATE_SAMPLE_HTML}" ; then nginx_create_sample_html ; fi
if [ -n "${NGINX_WEBROOT_SUFFIX}" ]; then
_nginx_webroot=${NGINX_WEBROOT}${NGINX_WEBROOT_SUFFIX}
else
_nginx_webroot=${NGINX_WEBROOT}
fi

update_template "/etc/nginx/sites.available/*.conf" \
NGINX_LISTEN_PORT \
NGINX_WEBROOT
_nginx_webroot
if silent grep -q '<WEBROOT>' /etc/nginx/sites.available/*.conf ; then
print_notice "Detected Legacy templates in /etc/nginx/sites.avaialable. Please change '<WEBROOT>' to {{NGINX_WEBROOT}}"
silent sed -i "s|<WEBROOT>|${NGINX_WEBROOT}|g" /etc/nginx/sites.available/*.conf
Expand Down

0 comments on commit 07ebb51

Please sign in to comment.