浏览代码

Update INSTALLATION.md

Daniele Bonini (皮夕): WebDev, DevOps and homomm.org by lots of Simplicity bits 3 年之前
父节点
当前提交
b827cedbb7
共有 1 个文件被更改,包括 57 次插入1 次删除
  1. 57 1
      INSTALLATION.md

+ 57 - 1
INSTALLATION.md

@@ -3,7 +3,63 @@
   Installing Homogram is more straightforward than what it could appear..   
   Installing Homogram is more straightforward than what it could appear..   
   
   
   First, if you use Nginx as reversed proxy just point the root of your web app to /path/to/YourHomogram/Public/static   
   First, if you use Nginx as reversed proxy just point the root of your web app to /path/to/YourHomogram/Public/static   
-  where the static content is located.
+  where the static content is located:
+  
+  <ol>  
+  <li>The static content hosted should be just of this kind: html, css, js, png, jpg, jpeg, gif, fonts, map, ico</li>   
+  <li>Example of Nginx minimal configuration:
+      
+       
+        
+        
+     
+      server {   
+     
+        listen 80;
+        listen [::]:80;
+    
+        server_name yourname-homogram.com;
+     
+        root /var/www/YourHomogram/Public/static;
+        index index.php; 
+       
+        location / {     
+          proxy_set_header Host $host;     
+          proxy_set_header X-Real_IP $remote_addr;     
+          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;    
+         
+          proxy_http_version 1.1;     
+          proxy_set_header Connection "";     
+        
+          proxy_pass http://127.0.0.1:8081;        
+        }
+     
+        location ~* ^.+\.(php)$ {     
+          proxy_set_header Host $host;     
+          proxy_set_header X-Real_IP $remote_addr;     
+          proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;    
+         
+          proxy_http_version 1.1;     
+          proxy_set_header Connection "";     
+        
+          proxy_pass http://127.0.0.1:8081;        
+        }
+        
+        location ~* ^.+\.(js|map|css|jpg|jpeg|gif|png|ttf|woff|woff2|eot|pdf|html|htm|zip|flv|swf|ico|xml|txt)$ {
+     
+          gzip on;
+          #gzip_http_version 1.1;
+          gzip_comp_level 6;
+          gzip_types text/css text/javascript application/x-javascript text/html;
+          gzip_min_length 1000;
+
+          expires 30d;
+        }      
+      }     
+     
+     
+  </li>
+  </ol>  
   
   
   Apache instead should have DocumentRoot pointing to /path/to/YourHomogram/Public .   
   Apache instead should have DocumentRoot pointing to /path/to/YourHomogram/Public .