[etherpad-web/oscp-frontend] Make sure socket.io endpoint uses WS
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [etherpad-web/oscp-frontend] Make sure socket.io endpoint uses WS
- Date: Wed, 13 May 2020 09:40:09 +0000 (UTC)
commit 3a9f3061167c30d024caa94c63fc15808d248821
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Wed May 13 11:38:30 2020 +0200
Make sure socket.io endpoint uses WS
app_data/httpd-cfg/etherpad.gnome.org.conf | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/app_data/httpd-cfg/etherpad.gnome.org.conf b/app_data/httpd-cfg/etherpad.gnome.org.conf
index 1ebdea2..af0037c 100644
--- a/app_data/httpd-cfg/etherpad.gnome.org.conf
+++ b/app_data/httpd-cfg/etherpad.gnome.org.conf
@@ -9,8 +9,18 @@
RedirectMatch ^(.*) https://letsencrypt.gnome.org$1
</LocationMatch>
- ProxyPass / http://prod.etherpad-web.svc:9001/ retry=0
- ProxyPassReverse / http://prod.etherpad-web.svc:9001/
+ <Location />
+ ProxyPass http://prod.etherpad-web.svc:9001/ retry=0
+ ProxyPassReverse http://prod.etherpad-web.svc:9001/
+ </Location>
+
+ <Location /socket.io>
+ RewriteEngine On
+ RewriteCond %{QUERY_STRING} transport=websocket [NC]
+ RewriteRule /(.*) ws://localhost:9001/socket.io/$1 [P,L]
+ ProxyPass http://prod.etherpad-web.svc:9001/socket.io retry=0
+ ProxyPassReverse http://prod.etherpad-web.svc:9001/socket.io
+ </Location>
<Proxy *>
Options FollowSymLinks MultiViews
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]