nextcloud / notify_push

Update notifications for nextcloud clients
GNU Affero General Public License v3.0
220 stars 40 forks source link

Apache proxy configuration within Location directives with upgrade=websocket #388

Open chriscroome opened 5 months ago

chriscroome commented 5 months ago

The Apache documentation could potentially be updated for Websocket Upgrade (2.4.47 and later), also I have found that using Location (note the Overlapping Webspace documentation) seems to work best, for example:

<Location "/push/">
  <IfModule proxy_module>
    ProxyPass "http://127.0.0.1:7867/"
    ProxyPassReverse "http://127.0.0.1:7867/"
  </IfModule>
</Location>
<Location "/push/ws">
  <IfModule proxy_module>
    ProxyPass "ws://127.0.0.1:7867/ws" upgrade=websocket
  </IfModule>
</Location>
IamTaoChen commented 3 months ago

I couldn't establish the wss connection.

image
IamTaoChen commented 3 months ago

I couldn't establish the wss connection. image

maybe, this is a solution: add this "RewriteCond %{REQUEST_URI} !^/push [NC]" in