diff --git a/Dockerfile b/Dockerfile index d53d7c7..abebdda 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,9 @@ RUN \ tar xf \ /tmp/heimdall.tar.gz -C \ /var/www/localhost/heimdall --strip-components=1 && \ + echo "**** configure nginx ****" && \ + echo -e 'fastcgi_param PHP_AUTH_USER $remote_user;\nfastcgi_param PHP_AUTH_PW $http_authorization;' >> \ + /etc/nginx/fastcgi_params && \ echo "**** cleanup ****" && \ rm -rf \ /tmp/* diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 560e7fc..01182e8 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -34,6 +34,9 @@ RUN \ tar xf \ /tmp/heimdall.tar.gz -C \ /var/www/localhost/heimdall --strip-components=1 && \ + echo "**** configure nginx ****" && \ + echo -e 'fastcgi_param PHP_AUTH_USER $remote_user;\nfastcgi_param PHP_AUTH_PW $http_authorization;' >> \ + /etc/nginx/fastcgi_params && \ echo "**** cleanup ****" && \ rm -rf \ /tmp/* diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 306eda2..af81cbe 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -34,6 +34,9 @@ RUN \ tar xf \ /tmp/heimdall.tar.gz -C \ /var/www/localhost/heimdall --strip-components=1 && \ + echo "**** configure nginx ****" && \ + echo -e 'fastcgi_param PHP_AUTH_USER $remote_user;\nfastcgi_param PHP_AUTH_PW $http_authorization;' >> \ + /etc/nginx/fastcgi_params && \ echo "**** cleanup ****" && \ rm -rf \ /tmp/* diff --git a/README.md b/README.md index 201351e..eaada12 100644 --- a/README.md +++ b/README.md @@ -136,6 +136,7 @@ This image now supports password protection through htpasswd. Run the following ## Versions +* **16.10.18:** - Updated fastcgi_params for user login support * **07.10.18:** - Symlink `.env` rather than copy. It now resides under `/config/www` * **30.09.18:** - Multi-arch image. Move `.env` to `/config`. * **05.09.18:** - Rebase to alpine linux 3.8. diff --git a/readme-vars.yml b/readme-vars.yml index 417ba9a..5fc83c0 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -47,6 +47,7 @@ app_setup_block: | # changelog changelogs: + - { date: "16.10.18:", desc: "Updated fastcgi_params for user login support" } - { date: "07.10.18:", desc: "Symlink `.env` rather than copy. It now resides under `/config/www`" } - { date: "30.09.18:", desc: "Multi-arch image. Move `.env` to `/config`." } - { date: "05.09.18:", desc: "Rebase to alpine linux 3.8." }