Open taiBsu opened 2 years ago
Hi @taiBsu ,
I think the issue is with splitting 20726 and 20723, any specific reason for that? :thinking: Apache should be able to upgrade the Websocket connection automatically depending on either the ws:// URL or request header. I'm assuming the module 'mod_proxy_wstunnel' is installed?
If you can't get rid of the 20723 port in any way try to change the path from <Location /chat/>
to <Location /sepia/chat/>
.
Some additional info to help fixing the issue:
sepia.mydomain.org
you should probably forward to http://[SEPIA-IP]:20726
sepia.mydomain.org/sepia
, this will help the client to identify the correct URLs and pathssepia.mydomain.org
instead of sepia.mydomain.org/sepia
as hostnameMy best guess would be something like this (untested ^^):
<VirtualHost *:443>
ServerName sepia.mydomain.org
Define HOST [SEPIA-IP]
# Make sure forward-proxy is disabled
ProxyRequests Off
# Define reverse-proxy locations
ProxyPass / http://${HOST}:20726/
# WebSocket support
RewriteEngine on
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteRule .* ws://${HOST}:20726%{REQUEST_URI} [P]
</VirtualHost>
Describe the bug I have set up the SEPIA home docker container as a docker-compose container after doing the setup manually via the command given in the installation instruction. My
docker-compose.yml
looks as follows:Then after finishing the installation, I set up a reverse proxy to access the sepia backend via sepia.mydomain.com:
Now, when trying to access my server via the Android app, I keep getting "Connecting..." - "Disconnected" output on the top of the app below the S.E.P.I.A. text. It just won't connect.
SEPIA client and server versions
To Reproduce Steps to reproduce the behavior:
Expected behavior Well, it should connect.
Oh, by the way, thanks for the great work! :D