From aa5fd6b2b7be5c8bc6044b4994a22a374a07b84a Mon Sep 17 00:00:00 2001
From: ealgase <mostdigitsofpi@gmail.com>
Date: Sun, 9 Jun 2019 21:54:18 +0200
Subject: [PATCH] Fix websockets reverse proxy

---
 deploy/apache.conf | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/deploy/apache.conf b/deploy/apache.conf
index e1409a627d..3b34dcdbad 100644
--- a/deploy/apache.conf
+++ b/deploy/apache.conf
@@ -64,11 +64,6 @@ Define MUSIC_DIRECTORY_PATH /srv/funkwhale/data/music
       Allow from all
    </Proxy>
 
-   # Activating WebSockets
-   <Location "/api/v1/activity">
-	   ProxyPass ${funkwhale-api-ws}/api/v1/activity
-   </Location>
-
    <Location "/">
       # similar to nginx 'client_max_body_size 100M;'
       LimitRequestBody 104857600
@@ -107,6 +102,11 @@ Define MUSIC_DIRECTORY_PATH /srv/funkwhale/data/music
    </Location>
    Alias /staticfiles /srv/funkwhale/data/static
 
+   # Activating WebSockets
+   <Location "/api/v1/activity">
+	   ProxyPass ${funkwhale-api-ws}/api/v1/activity
+   </Location>
+
    # Setting appropriate access levels to serve frontend
    <Directory "/srv/funkwhale/data/static">
       Options FollowSymLinks
-- 
GitLab