documentation icon indicating copy to clipboard operation
documentation copied to clipboard

Add keepalive in nginx configuration

Open bastiencyr opened this issue 3 years ago • 0 comments

Hello, Why not add a keepalive 32 for example in the nginx configuration : https://docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html . In the nginx doc, it is advised for performance issue : https://www.nginx.com/blog/tuning-nginx/ :

upstream php-handler {
    server 127.0.0.1:9000;
    keepalive 64;  # add this line
    #server unix:/var/run/php/php7.4-fpm.sock;
}

[...]

server {
    listen 443      ssl http2;
    listen [::]:443 ssl http2;
    server_name cloud.example.com;

    # dont forget to add these lines !!!!
    proxy_http_version 1.1;
    proxy_set_header Connection "";

[...]

bastiencyr avatar Jan 22 '22 21:01 bastiencyr