Commit a40d5e59 authored by Felix Bartels's avatar Felix Bartels

ZP-1161 import updated nginx config example. Released under the Affero GNU...

ZP-1161 import updated nginx config example. Released under the Affero GNU General Public License (AGPL) version 3.
parent fe2bcf98
server {
listen 443;
listen 443 ssl;
server_name localhost; # Please edit me
ssl on;
#ssl_certificate /path/to/ssl.crt; # Please edit me
#ssl_certificate_key /path/to/ssl.key; # Please edit me
ssl_certificate <path-to-certificate>/fullchain.pem; # Please edit me
ssl_certificate_key <path-to-certificate>/privkey.pem; # Please edit me
root /usr/share/webapps/z-push;
root /usr/share/z-push;
index index.php;
# Performance Settings
#client_max_body_size 4M;
#client_body_buffer_size 128k;
  access_log /var/log/nginx/zpush-access.log;
error_log /var/log/nginx/zpush-error.log;
# Attachments 20MB max
client_max_body_size 20m;
client_body_buffer_size 128k;
location / {
try_files $uri $uri/ index.php;
......@@ -21,12 +24,28 @@ server {
rewrite ^(.*)$ /index.php last;
}
location ~ .php$ {
location /AutoDiscover/AutoDiscover.xml {
alias /usr/share/z-push/autodiscover/autodiscover.php;
include fastcgi_params;
#depending on your php-fpm config
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_param SCRIPT_FILENAME /usr/share/z-push/autodiscover/autodiscover.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param REQUEST_URI $1;
}
location ~ .php$ {
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_param HTTPS on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
#depending on your php-fpm config
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
# PHP max_execution_time is set to 730
        fastcgi_read_timeout 730;
        proxy_read_timeout 700;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment