Commit 5e24b80b authored by Felix Bartels's avatar Felix Bartels

enable websocket notifications for folder changes (only web and browser extension)

Signed-off-by: Felix Bartels's avatarFelix Bartels <felix@host-consultants.de>
parent 593e1210
......@@ -9,8 +9,7 @@ ENV CONFIG_FILE=/app/data/config.json
ENV SIGNUPS_ALLOWED=false
ENV INVITATIONS_ALLOWED=true
ENV DISABLE_ADMIN_TOKEN=true
ENV WEBSOCKET_ENABLED=false
# set to false, will need some apache config first
ENV WEBSOCKET_ENABLED=true
RUN mkdir -p /app/data
VOLUME /app/data
......
......@@ -4,11 +4,14 @@
ErrorLog "/dev/stderr"
CustomLog "/dev/stdout" combined
<Location />
ProxyPreserveHost On
ProxyErrorOverride Off
ProxyPass http://127.0.0.1:3000/
</Location>
# rewrite websocket connections to its own endpoint
RewriteEngine On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /(.*) ws://127.0.0.1:3012/$1 [P,L]
ProxyPreserveHost On
ProxyErrorOverride Off
ProxyPass / http://127.0.0.1:3000/
<Location /admin>
AllowOverride None
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment