From c87c81f663d2b9b8ed402dbfedc1971869a951f1 Mon Sep 17 00:00:00 2001 From: Philipp Heckel Date: Wed, 13 Apr 2022 14:06:20 -0400 Subject: [PATCH] Add WebSockets support to docs/config --- docs/config.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/config.md b/docs/config.md index 0c6f6fd2..44ecc773 100644 --- a/docs/config.md +++ b/docs/config.md @@ -528,6 +528,11 @@ or the root domain: # Higher than the max message size of 4096 bytes LimitRequestBody 102400 + + # WebSockets support + RewriteCond %{HTTP:Upgrade} websocket [NC] + RewriteCond %{HTTP:Connection} upgrade [NC] + RewriteRule ^/?(.*) "ws://127.0.0.1:2586/$1" [P,L] # Redirect HTTP to HTTPS, but only for GET topic addresses, since we want # it to work with curl without the annoying https:// prefix @@ -552,6 +557,11 @@ or the root domain: # Higher than the max message size of 4096 bytes LimitRequestBody 102400 + + # WebSockets support + RewriteCond %{HTTP:Upgrade} websocket [NC] + RewriteCond %{HTTP:Connection} upgrade [NC] + RewriteRule ^/?(.*) "ws://127.0.0.1:2586/$1" [P,L] # Redirect HTTP to HTTPS, but only for GET topic addresses, since we want # it to work with curl without the annoying https:// prefix