Skip to content

Commit

Permalink
Increase memory limit in prod instance and hide response header in do…
Browse files Browse the repository at this point in the history
…cker (#220)
  • Loading branch information
akondas authored Jul 16, 2020
1 parent 7f2e441 commit 741e610
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/php/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 741e610

Please sign in to comment.