Permalink
Browse files

Add nginx config sample

  • Loading branch information...
1 parent 697cc7e commit 2baa4b73e046f4302346a5b7c1c6ea09e19f042d @c12simple c12simple committed Sep 30, 2016
Showing with 26 additions and 0 deletions.
  1. +26 −0 core/src/nginx.conf.sample
@@ -0,0 +1,26 @@
+# Debian 8 with default /etc/nginx/nginx.conf
+# File name: /etc/nginx/sites-available/pydio.conf
+server {
+ listen 80 default_server;
+ keepalive_requests 10;
+ keepalive_timeout 60 60;
+
+ client_max_body_size 800M;
+ client_body_buffer_size 128k;
+
+ # Document Root
+ root /usr/share/pydio;
+
+ if (!-e $request_filename){
+ rewrite ^(.*)$ /index.php break;
+ }
+
+ # nginx configuration
+ location ~ \.php$ {
+ include snippets/fastcgi-php.conf;
+ fastcgi_pass unix:/var/lib/php5-fpm/www.sock;
+ }
+}
+types {
+ application/font-woff2 woff2;
+}

0 comments on commit 2baa4b7

Please sign in to comment.