From 7da25145fb585f586bb75bfac393ae4394a452ce Mon Sep 17 00:00:00 2001
From: Eliot Berriot <contact@eliotberriot.com>
Date: Tue, 20 Aug 2019 09:42:04 +0200
Subject: [PATCH] Added Caddy reverse proxy example

---
 docs/installation/index.rst | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/docs/installation/index.rst b/docs/installation/index.rst
index 847a71bf6..3a56b4c47 100644
--- a/docs/installation/index.rst
+++ b/docs/installation/index.rst
@@ -275,6 +275,22 @@ installation guide.
 Check the configuration is valid with ``apache2ctl configtest``, and once you're
 done, load the new configuration with ``service apache2 restart``.
 
+Caddy
+^^^^^
+
+If you're using Caddy as a reverse proxy in front of your docker containers (either mono or multi-container setup),
+you can use the following configuration::
+
+    yourdomain.funkwhale {
+        proxy / 127.0.0.1:5000 {
+            transparent
+            websocket
+            header_upstream X-Forwarded-Host {host}:{server_port}
+        }
+    }
+
+
+
 About internal locations
 ^^^^^^^^^^^^^^^^^^^^^^^^
 
-- 
GitLab