Notification server nginx config

Notif server nginx config in docs has following block:

map $http_upgrade $connection_upgrade {
default upgrade;
'' close;
}

Am I missing something or is it not needed, given mapped $connection_upgrade is never referenced? Or is it a bug and the “Connection” hdr value should instead be following?:

proxy_set_header Connection $connection_upgrade;
1 Like

Hi,
thanks for the feedback, the setting connection_upgrade is missing from the documentation, we will add it to the documentation.

Just to clarify for other readers, insert

proxy_set_header Connection $connection_upgrade;

in the location

location /notification

in Nginx?

Yes,
the modified configuration is shown below:

map $http_upgrade $connection_upgrade {
default upgrade;
‘’ close;
}

server {
location /notification/ping {
proxy_pass http://127.0.0.1:8083/ping;
access_log /var/log/nginx/notif.access.log;
error_log /var/log/nginx/notif.error.log;
}

location /notification {
    proxy_pass http://127.0.0.1:8083/;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;
    access_log      /var/log/nginx/notif.access.log;
    error_log       /var/log/nginx/notif.error.log;
}

}

1 Like

A link to the section on the Notification Server in the Seafile Admin Manual is HERE. Apache is shown also.