Browse Source

added proxy buffer size in nginx host config

Bachir Soussi Chiadmi 5 years ago
parent
commit
f4529ec913
1 changed files with 13 additions and 7 deletions
  1. 13 7
      README.md

+ 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