From 5dcb81c4affb48cc3ceb37cfb5083fb580633f03 Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Mon, 7 May 2018 22:29:22 +0200
Subject: [PATCH] See #192: updated sample nginx/apache conf for well-known
 endpoints

---
 deploy/apache.conf | 6 +++---
 deploy/nginx.conf  | 4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/deploy/apache.conf b/deploy/apache.conf
index 8d5a5e1f..5bfcbce0 100644
--- a/deploy/apache.conf
+++ b/deploy/apache.conf
@@ -84,9 +84,9 @@ Define MUSIC_DIRECTORY_PATH /srv/funkwhale/data/music
       ProxyPassReverse ${funkwhale-api}/federation
    </Location>
 
-   <Location "/.well-known/webfinger">
-      ProxyPass ${funkwhale-api}/.well-known/webfinger
-      ProxyPassReverse ${funkwhale-api}/.well-known/webfinger
+   <Location "/.well-known/">
+      ProxyPass ${funkwhale-api}/.well-known/
+      ProxyPassReverse ${funkwhale-api}/.well-known/
    </Location>
 
    Alias /media /srv/funkwhale/data/media
diff --git a/deploy/nginx.conf b/deploy/nginx.conf
index b3a4c6aa..7d344408 100644
--- a/deploy/nginx.conf
+++ b/deploy/nginx.conf
@@ -67,9 +67,9 @@ server {
         proxy_pass   http://funkwhale-api/federation/;
     }
 
-    location /.well-known/webfinger {
+    location /.well-known/ {
         include /etc/nginx/funkwhale_proxy.conf;
-        proxy_pass   http://funkwhale-api/.well-known/webfinger;
+        proxy_pass   http://funkwhale-api/.well-known/;
     }
 
     location /media/ {
-- 
GitLab