Dan Nuggetsman 1 тиждень тому
батько
коміт
837998067d
1 змінених файлів з 50 додано та 5 видалено
  1. 50 5
      INSTALLATION.md

+ 50 - 5
INSTALLATION.md

@@ -1,12 +1,57 @@
 # INSTALLATION
    
-  Installing Invenktory is more straightforward than what it could appear..   
+  Installing this web app 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/YourInvenktory/Public/static   
-  where the static content is located.
+  First, if you use Nginx as reversed proxy just point the root of your web app to /path/to/YourWebApp/Public/static  
+  where the public content is located:
   
-  Apache instead should have DocumentRoot pointing to /path/to/YourInvenktory/Public .   
+  <ol>  
+  <li>Example of Nginx minimal configuration:
+     
+      server {   
+     
+        listen 80;
+        listen [::]:80;
+    
+        server_name yourservername.xyz;
+     
+        root /path/to/YourWebApp/Public/static;
+        index index.php; 
+       
+        location / {     
+           
+           if (!-e $request_filename) {
+             rewrite ^(.+)$ /index.php?url=$1 last;
+           }
+        }
+     
+        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|wav|mp3)$ {
+     
+          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>  
   
-  If you don't use Nginx as reversed proxy consider to merge /Public/static folder with /Public .   
+  Apache instead should have DocumentRoot pointing to /path/to/YourWebApp/Public .   
   
   Dan