From bcaccab0296922febfd97754febfa38c4ee3626a Mon Sep 17 00:00:00 2001 From: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com> Date: Sat, 25 May 2024 11:09:10 +0800 Subject: [PATCH] add a location block dedicated to the websocket to improve performances --- docs/example.httpd.conf | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/example.httpd.conf b/docs/example.httpd.conf index 67127424c..d22648181 100644 --- a/docs/example.httpd.conf +++ b/docs/example.httpd.conf @@ -33,8 +33,14 @@ SSLStaplingCache "shmcb:logs/ssl_stapling(32768)" nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 Protocols h2 http/1.1 - LimitRequestBody 157286400 AddType application/javascript mjs - ProxyPass / http://localhost:3000/ upgrade=websocket - ProxyPassReverse / http://localhost:3000/ + + LimitRequestBody 157286400 + ProxyPass http://localhost:3000/ upgrade=websocket + ProxyPassReverse http://localhost:3000/ + + + ProxyPassMatch http://localhost:3003/ upgrade=websocket + ProxyPassReverse http://localhost:3003/ +