add a location block dedicated to the websocket to improve performances

This commit is contained in:
nisbet-hubbard 2024-05-25 11:09:10 +08:00 committed by GitHub
parent 1f31751bac
commit bcaccab029
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,8 +33,14 @@ SSLStaplingCache "shmcb:logs/ssl_stapling(32768)"
nokeepalive ssl-unclean-shutdown \ nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0 downgrade-1.0 force-response-1.0
Protocols h2 http/1.1 Protocols h2 http/1.1
LimitRequestBody 157286400
AddType application/javascript mjs AddType application/javascript mjs
ProxyPass / http://localhost:3000/ upgrade=websocket <Location "/">
ProxyPassReverse / http://localhost:3000/ LimitRequestBody 157286400
ProxyPass http://localhost:3000/ upgrade=websocket
ProxyPassReverse http://localhost:3000/
</Location>
<Location "/cryptpad_websocket">
ProxyPassMatch http://localhost:3003/ upgrade=websocket
ProxyPassReverse http://localhost:3003/
</Location>
</VirtualHost> </VirtualHost>