add a location block dedicated to the websocket to improve performances

This commit is contained in:
mathilde-cryptpad 2024-05-17 10:34:51 +02:00 committed by Wolfgang Ginolas
parent 938e0356d9
commit c9600c12ab
1 changed files with 11 additions and 0 deletions

View File

@ -70,4 +70,15 @@ server {
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
}
location ^~ /cryptpad_websocket {
proxy_pass http://localhost:3003;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection upgrade;
}
}