Skip to content

Commit

Permalink
Merge pull request #85 from benedicteb/add-clear-env-no
Browse files Browse the repository at this point in the history
Enable configuration through environment variables by disabling php-fpm/clear_env
  • Loading branch information
aptalca authored Mar 29, 2024
2 parents 1031528 + b0f407b commit eb1a70f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ RUN \
php83-pdo \
php83-pdo_sqlite \
php83-tokenizer && \
echo "**** configure php-fpm to pass env vars ****" && \
sed -E -i 's/^;?clear_env ?=.*$/clear_env = no/g' /etc/php83/php-fpm.d/www.conf && \
grep -qxF 'clear_env = no' /etc/php83/php-fpm.d/www.conf || echo 'clear_env = no' >> /etc/php83/php-fpm.d/www.conf && \
echo "**** install grocy ****" && \
mkdir -p /app/www && \
if [ -z ${GROCY_RELEASE+x} ]; then \
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile.aarch64
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ RUN \
php83-pdo \
php83-pdo_sqlite \
php83-tokenizer && \
echo "**** configure php-fpm to pass env vars ****" && \
sed -E -i 's/^;?clear_env ?=.*$/clear_env = no/g' /etc/php83/php-fpm.d/www.conf && \
grep -qxF 'clear_env = no' /etc/php83/php-fpm.d/www.conf || echo 'clear_env = no' >> /etc/php83/php-fpm.d/www.conf && \
echo "**** install grocy ****" && \
mkdir -p /app/www && \
if [ -z ${GROCY_RELEASE+x} ]; then \
Expand Down
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ app_setup_block: |
# changelog
changelogs:
- { date: "29.03.24:", desc: "Add `clear_env = no` to `php-fpm` to pass on environment variables to workers threads" }
- { date: "06.03.24:", desc: "Existing users should update: site-confs/default.conf - Cleanup default site conf." }
- { date: "06.03.24:", desc: "Rebase to Alpine 3.19 with php 8.3."}
- { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
Expand Down

0 comments on commit eb1a70f

Please sign in to comment.