From 741e6109a1c9dfb90fe52a249782c46cb7c9d08e Mon Sep 17 00:00:00 2001 From: Arkadiusz Kondas Date: Thu, 16 Jul 2020 09:00:25 +0200 Subject: [PATCH] Increase memory limit in prod instance and hide response header in docker (#220) --- Dockerfile | 3 +++ ansible/roles/php/defaults/main.yml | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 50a2d289..cf2b4a57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,6 +36,9 @@ RUN ln -snf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && \ # set memory limit RUN echo "memory_limit=512M" > /usr/local/etc/php/conf.d/memory-limit.ini +# hide X-Powered-By in reponse header +RUN echo "expose_php=off" > /usr/local/etc/php/conf.d/expose.ini + # automatically add new host keys to the user known hosts RUN printf "Host *\n StrictHostKeyChecking no" > /etc/ssh/ssh_config diff --git a/ansible/roles/php/defaults/main.yml b/ansible/roles/php/defaults/main.yml index 6a9f20f8..f61735e0 100644 --- a/ansible/roles/php/defaults/main.yml +++ b/ansible/roles/php/defaults/main.yml @@ -7,7 +7,7 @@ php_listen_group: 'www-data' php_fastcgi_listen: "/run/php/www.sock" php_upload_max_filesize: "{{ nginx_client_max_body_size }}" php_post_max_size: "{{ nginx_client_max_body_size }}" -php_memory_limit: "256M" +php_memory_limit: "512M" php_max_execution_time: 30 php_version: "7.4"