layr
September 23, 2024, 10:39am
1
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
feiniks
September 27, 2024, 4:06am
2
layr:
connection_upgrade
Hi,
thanks for the feedback, the setting connection_upgrade is missing from the documentation, we will add it to the documentation.
mercury
September 27, 2024, 4:28am
3
Just to clarify for other readers, insert
proxy_set_header Connection $connection_upgrade;
in the location
location /notification
in Nginx?
feiniks
September 27, 2024, 5:27am
4
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
mercury
September 27, 2024, 3:47pm
5
A link to the section on the Notification Server in the Seafile Admin Manual is HERE . Apache is shown also.