nextcloud / nextcloud/documentation

Add keepalive in nginx configuration

Open
#7,980 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

1. to develop enhancement feature: install and update manual: admin needs info
Dominant language
JavaScript
Stars
628
Forks
2.5k
Avg merge
2d 11h
Merged PRs (30d)
135

Description

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 "";

[...]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the nginx installation page at docs.nextcloud.com/server/latest/admin_manual/installation/nginx.html and compare its upstream and server examples with the linked NGINX tuning guidance. Confirm whether the keepalive and proxy directives apply to the documented setup; done means the page clearly reflects the agreed configuration or explains why it is not included.

Written by the indexing model from the issue text.

Assessment

Tech stack
nginx
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.