focalboard
focalboard copied to clipboard
Bug: ws requests don't come through in apache2 reverse proxies.
Steps to reproduce the behavior
- 1: Install focal board using git clone and running the docker command.
- 2: setup the apache2 config
- 3: open the board and look at network console and see that the ws/wss connection fails
Apache2
<VirtualHost *:80>
ServerName myURL.com
Redirect permanent / https://myURL.com/
</VirtualHost>
<VirtualHost *:443>
ServerName myURL.com
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
SSLEngine On
ProxyPass /ws/ ws://127.0.0.1:8082/
ProxyPassReverse /ws/ ws://127.0.0.1:8082/
<Location />
Require all granted
ProxyPass http://127.0.0.1:8082/
ProxyPassReverse http://127.0.0.1:8082/
ProxyPassReverseCookieDomain 127.0.0.1 myURL.com
</Location>
SSLCertificateFile /etc/letsencrypt/live/myURL.com/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/myURL.com/privkey.pem
SSLCertificateChainFile /etc/letsencrypt/live/myURL.com/chain.pem
ProxyPass / http://localhost:8082/ nocanon
ProxyPassReverse / http://localhost:8082/
</VirtualHost>
Expected behavior
That the focal board setup works with apache2 and is responsive and doesn't require a refresh for any change done. A best solution would be that a script for apache2 is provided.
Edition and Platform
- todays git patch and ubuntu 22.04