diff --git a/.docker/nginx/nginx.conf b/.docker/nginx/nginx.conf index 514463b..50a26d4 100644 --- a/.docker/nginx/nginx.conf +++ b/.docker/nginx/nginx.conf @@ -14,6 +14,7 @@ server { include fastcgi_params; fastcgi_read_timeout 300; add_header X-Frame-Options "SAMEORIGIN"; + add_header X-server-header "Powered by Jield - info@jield.nl"; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; } @@ -21,4 +22,4 @@ server { try_files $uri $uri/ /index.php?$query_string; gzip_static on; } -} \ No newline at end of file +} diff --git a/README.md b/README.md index ae5e9f3..2b899d5 100644 --- a/README.md +++ b/README.md @@ -28,4 +28,4 @@ PHP versions: - 8.4.5 Azure containers contain an SSH server and default Azure credentials. -Johan van der Heide, Jield BV (info@jield.nl) +Johan van der Heide, Jield BV (johan.vanderheide@jield.nl) diff --git a/php81-nginx-azure/Dockerfile b/php81-nginx-azure/Dockerfile index 0fb6fd4..36c97af 100644 --- a/php81-nginx-azure/Dockerfile +++ b/php81-nginx-azure/Dockerfile @@ -15,6 +15,7 @@ RUN echo 'max_execution_time = 300' >> /usr/local/etc/php/conf.d/docker-php-max- RUN echo 'opcache.max_accelerated_files = 20000' >> /usr/local/etc/php/conf.d/docker-php-opcache.ini; RUN echo 'opcache.validate_timestamps=0' >> /usr/local/etc/php/conf.d/docker-php-opcache.ini; RUN echo 'realpath_cache_ttl=600' >> /usr/local/etc/php/conf.d/docker-php-realpatch-cache.ini; +RUN echo 'expose_php=off' >> /usr/local/etc/php/conf.d/docker-php-expose.ini; COPY --from=ghcr.io/mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer @@ -25,7 +26,7 @@ WORKDIR /var/www RUN install-php-extensions gd redis-^5 xsl apcu igbinary intl gmp gettext zip opcache soap bcmath pdo_mysql RUN apt-get update && \ -apt-get install -y --no-install-recommends \ + apt-get install -y --no-install-recommends \ supervisor \ openssh-server \ redis-server \ @@ -49,11 +50,11 @@ RUN chmod +x /init_container.sh \ COPY .docker/ssh/sshd_config /etc/ssh/sshd_config COPY .docker/scripts/ssh_setup.sh /tmp/ssh_setup.sh RUN mkdir -p /opt/startup \ - && chmod -R +x /opt/startup \ - && chmod -R +x /init_container.sh \ - && chmod -R +x /tmp/ssh_setup.sh \ - && (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \ - && rm -rf /tmp/* + && chmod -R +x /opt/startup \ + && chmod -R +x /init_container.sh \ + && chmod -R +x /tmp/ssh_setup.sh \ + && (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \ + && rm -rf /tmp/* # Open port 2222 for SSH access EXPOSE 80 2222 @@ -61,4 +62,4 @@ EXPOSE 80 2222 #Start supervisor RUN /init_container.sh -CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] \ No newline at end of file +CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] diff --git a/php82-nginx-azure/Dockerfile b/php82-nginx-azure/Dockerfile index 83a9030..ad9ccae 100644 --- a/php82-nginx-azure/Dockerfile +++ b/php82-nginx-azure/Dockerfile @@ -15,6 +15,7 @@ RUN echo 'max_execution_time = 300' >> /usr/local/etc/php/conf.d/docker-php-max- RUN echo 'opcache.max_accelerated_files = 20000' >> /usr/local/etc/php/conf.d/docker-php-opcache.ini; RUN echo 'opcache.validate_timestamps=0' >> /usr/local/etc/php/conf.d/docker-php-opcache.ini; RUN echo 'realpath_cache_ttl=600' >> /usr/local/etc/php/conf.d/docker-php-realpatch-cache.ini; +RUN echo 'expose_php=off' >> /usr/local/etc/php/conf.d/docker-php-expose.ini; COPY --from=ghcr.io/mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer @@ -25,7 +26,7 @@ WORKDIR /var/www RUN install-php-extensions gd redis xsl apcu igbinary intl gmp gettext zip opcache soap bcmath pdo_mysql RUN apt-get update && \ -apt-get install -y --no-install-recommends \ + apt-get install -y --no-install-recommends \ supervisor \ openssh-server \ redis-server \ @@ -49,11 +50,11 @@ RUN chmod +x /init_container.sh \ COPY .docker/ssh/sshd_config /etc/ssh/sshd_config COPY .docker/scripts/ssh_setup.sh /tmp/ssh_setup.sh RUN mkdir -p /opt/startup \ - && chmod -R +x /opt/startup \ - && chmod -R +x /init_container.sh \ - && chmod -R +x /tmp/ssh_setup.sh \ - && (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \ - && rm -rf /tmp/* + && chmod -R +x /opt/startup \ + && chmod -R +x /init_container.sh \ + && chmod -R +x /tmp/ssh_setup.sh \ + && (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \ + && rm -rf /tmp/* # Open port 2222 for SSH access EXPOSE 80 2222 @@ -61,4 +62,4 @@ EXPOSE 80 2222 #Start supervisor RUN /init_container.sh -CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] \ No newline at end of file +CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] diff --git a/php83-nginx-azure/Dockerfile b/php83-nginx-azure/Dockerfile index 9328653..2ed1dac 100644 --- a/php83-nginx-azure/Dockerfile +++ b/php83-nginx-azure/Dockerfile @@ -15,6 +15,7 @@ RUN echo 'max_execution_time = 300' >> /usr/local/etc/php/conf.d/docker-php-max- RUN echo 'opcache.max_accelerated_files = 20000' >> /usr/local/etc/php/conf.d/docker-php-opcache.ini; RUN echo 'opcache.validate_timestamps=0' >> /usr/local/etc/php/conf.d/docker-php-opcache.ini; RUN echo 'realpath_cache_ttl=600' >> /usr/local/etc/php/conf.d/docker-php-realpatch-cache.ini; +RUN echo 'expose_php=off' >> /usr/local/etc/php/conf.d/docker-php-expose.ini; COPY --from=ghcr.io/mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer @@ -25,7 +26,7 @@ WORKDIR /var/www RUN install-php-extensions gd redis xsl apcu igbinary intl gmp gettext zip opcache soap bcmath pdo_mysql RUN apt-get update && \ -apt-get install -y --no-install-recommends \ + apt-get install -y --no-install-recommends \ supervisor \ openssh-server \ redis-server \ @@ -49,11 +50,11 @@ RUN chmod +x /init_container.sh \ COPY .docker/ssh/sshd_config /etc/ssh/sshd_config COPY .docker/scripts/ssh_setup.sh /tmp/ssh_setup.sh RUN mkdir -p /opt/startup \ - && chmod -R +x /opt/startup \ - && chmod -R +x /init_container.sh \ - && chmod -R +x /tmp/ssh_setup.sh \ - && (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \ - && rm -rf /tmp/* + && chmod -R +x /opt/startup \ + && chmod -R +x /init_container.sh \ + && chmod -R +x /tmp/ssh_setup.sh \ + && (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \ + && rm -rf /tmp/* # Open port 2222 for SSH access EXPOSE 80 2222 @@ -61,4 +62,4 @@ EXPOSE 80 2222 #Start supervisor RUN /init_container.sh -CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] \ No newline at end of file +CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] diff --git a/php84-fpm-dev/Dockerfile b/php84-fpm-dev/Dockerfile index 5daecac..4117bd8 100644 --- a/php84-fpm-dev/Dockerfile +++ b/php84-fpm-dev/Dockerfile @@ -14,4 +14,4 @@ RUN echo 'date.timezone=Europe/Amsterdam' >> /usr/local/etc/php/conf.d/docker-ph # Set working directory WORKDIR /var/www -RUN install-php-extensions gd redis xsl apcu igbinary intl gmp gettext zip opcache soap bcmath pdo_mysql xdebug \ No newline at end of file +RUN install-php-extensions gd redis xsl apcu igbinary intl gmp gettext zip opcache soap bcmath pdo_mysql xdebug