[etherpad-web/oscp-frontend] Handle websocket transport
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [etherpad-web/oscp-frontend] Handle websocket transport
- Date: Wed, 13 May 2020 07:52:09 +0000 (UTC)
commit 2f93969c1e7e71a7ab5066ad377f61133fcddc29
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Wed May 13 09:52:03 2020 +0200
Handle websocket transport
app_data/httpd-cfg/etherpad.gnome.org.conf | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
---
diff --git a/app_data/httpd-cfg/etherpad.gnome.org.conf b/app_data/httpd-cfg/etherpad.gnome.org.conf
index 1ebdea2..b2c0a3b 100644
--- a/app_data/httpd-cfg/etherpad.gnome.org.conf
+++ b/app_data/httpd-cfg/etherpad.gnome.org.conf
@@ -9,9 +9,17 @@
RedirectMatch ^(.*) https://letsencrypt.gnome.org$1
</LocationMatch>
- ProxyPass / http://prod.etherpad-web.svc:9001/ retry=0
+ ProxyPass / http://prod.etherpad-web.svc:9001/ retry=0 timeout=30
ProxyPassReverse / http://prod.etherpad-web.svc:9001/
+ <Location /socket.io>
+ RewriteEngine On
+ RewriteCond %{QUERY_STRING} transport=websocket [NC]
+ RewriteRule /(.*) ws://prod.etherpad-web.svc:9001/socket.io/$1 [P,L]
+ ProxyPass http://prod.etherpad-web.svc:9001/socket.io retry=0 timeout=30
+ ProxyPassReverse http://prod.etherpad-web.svc:9001/socket.io
+ </Location>
+
<Proxy *>
Options FollowSymLinks MultiViews
AllowOverride All
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]