From c53f1e61279e828d2fb376217fa4468070f4ccfc Mon Sep 17 00:00:00 2001 From: GilbN Date: Sat, 29 Feb 2020 12:48:50 +0100 Subject: [PATCH] added caddy example --- Setup.md | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/Setup.md b/Setup.md index 76c7862..ea0a097 100644 --- a/Setup.md +++ b/Setup.md @@ -6,8 +6,8 @@
  • Stylus Method
  • @@ -128,7 +128,7 @@ location /sonarr { Now when you change the variable in the http block and restart nginx, it will update the theme for all your apps! -### Apache (Untested) +### Apache ```apache AddOutputFilterByType SUBSTITUTE text/html Substitute 's| ' @@ -146,6 +146,42 @@ AddOutputFilterByType SUBSTITUTE text/html ``` +### Caddy + +```nginx +filter rule { + content_type text/html.* + search_pattern + replacement "" +} +``` + +#### Example: +```nginx +proxy /tautulli 127.0.0.1:8181 { + header_upstream Host {host} + header_upstream X-Real-IP {remote} + header_upstream X-Forwarded-For {remote} + header_upstream X-Forwarded-Proto {scheme} + header_upstream X-Forwarded-Host {host} + header_upstream X-Forwarded-Ssl {on} + filter rule { + content_type text/html.* + search_pattern + replacement "" +} + } +``` + +#### Caddy Docker labels: + +``` +"caddy.filter": "rule" +"caddy.filter.content_type": "text/html.*" +"caddy.filter.search_pattern": "" +"caddy.filter.replacement": "\"\"" +``` + ## Stylus method Stylus is a browser extention that can inject custom css to the webpage of your choosing.