New notification server

@daniel.pan
hi ,
the nginx configuration mentioned in the manual does not work.

If you use nginx, then you also need to add the following configuration for nginx:

server {
    ...

    location /notification/ping {
        proxy_pass http://127.0.0.1:8083/ping;
        access_log      /var/log/nginx/notification.access.log seafileformat;
        error_log       /var/log/nginx/notification.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 "upgrade";
        access_log      /var/log/nginx/notification.access.log seafileformat;
        error_log       /var/log/nginx/notification.error.log;
    }

for this to work you have to remove the 2 seafileformat elements in the configuration, is this normal?

nginx -t with “seafileformat”

nginx -t without “seafileformat”

Thanks

I guess you are missing this line

log_format seafileformat '$http_x_forwarded_for $remote_addr [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $upstream_response_time';

see: HTTPS with Nginx - Seafile Admin Manual

1 Like

Thanks, actually, I forgot the line you mentioned.