2 Commits 57ecdafc25 ... 61e6285d1e

Author SHA1 Message Date
  Bachir Soussi Chiadmi 61e6285d1e more settings in php 5 years ago
  Bachir Soussi Chiadmi f4529ec913 added proxy buffer size in nginx host config 5 years ago
3 changed files with 19 additions and 7 deletions
  1. 1 0
      Docker/php/Dockerfile
  2. 5 0
      Docker/php/php-custom.ini
  3. 13 7
      README.md

+ 1 - 0
Docker/php/Dockerfile

@@ -14,6 +14,7 @@ RUN apt-get update && apt-get install -y \
 		docker-php-ext-install -j$(nproc) gd && \
 		docker-php-ext-install pdo_mysql zip && \
 		docker-php-ext-install opcache && \
+		docker-php-ext-install bcmath && \
 		apt-get install -y git vim && \
 		pecl install redis-3.1.0 && \
     pecl install xdebug-2.5.0 && \

+ 5 - 0
Docker/php/php-custom.ini

@@ -1,3 +1,8 @@
 memory_limit = 1024M
 upload_max_filesize = 50M
 post_max_size = 50M
+
+; Log level
+; Possible Values: alert, error, warning, notice, debug
+; Default Value: notice
+log_level = debug

+ 13 - 7
README.md

@@ -36,11 +36,14 @@ add to your /etc/hosts :
 configure your apache vhosts to add a reverse proxy that will redirect the dev.materio.com to our container
 ```
 <Virtualhost *:80>
-   ServerName dev.materio.com
-   ProxyPass / http://127.0.0.1:8880/
-   ProxyPassReverse / http://127.0.0.1:8880/
-   ProxyRequests Off
-   ProxyPreserveHost On
+  ServerName dev.materio.com
+  ProxyPass / http://127.0.0.1:8880/
+  ProxyPassReverse / http://127.0.0.1:8880/
+  ProxyRequests Off
+  ProxyPreserveHost On
+  proxy_buffer_size          128k;
+  proxy_buffers              4 256k;
+  proxy_busy_buffers_size    256k;
 </Virtualhost>
 ```
 ```
@@ -50,6 +53,9 @@ configure your apache vhosts to add a reverse proxy that will redirect the dev.m
    ProxyPassReverse / http://127.0.0.1:8881/
    ProxyRequests Off
    ProxyPreserveHost On
+   proxy_buffer_size          128k;
+   proxy_buffers              4 256k;
+   proxy_busy_buffers_size    256k;
 </Virtualhost>
 ```
 ## Docker
@@ -85,9 +91,9 @@ sudo docker exec -it materiod8_php_1 bash
 once inside the php container in /var/www/html you can use drush as usual
 
 ### gulp
-Dev process needs gulp to run in: 
+Dev process needs gulp to run in:
 - public_html/sites/all/modules/custom/materio/
-- public_html/sites/all/themes/custom/materio/ 
+- public_html/sites/all/themes/custom/materio/
   if you have to modifie js or scss source code, you need to do in each of these 2 folder:
 ```
 npm install