From 4bf587637a6342735c70cf7282efbeed539e33dc Mon Sep 17 00:00:00 2001 From: GilbN Date: Sat, 18 Jul 2020 00:32:49 +0200 Subject: [PATCH] Updated Setup (markdown) --- Setup.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Setup.md b/Setup.md index 95df92a..f9b30c5 100644 --- a/Setup.md +++ b/Setup.md @@ -202,7 +202,7 @@ You will have to create your own Caddy image that includes the `caddy2-filter`. `Dockerfile`: -``` +```docker FROM caddy:2.0.0-builder AS builder RUN caddy-builder \ @@ -232,7 +232,7 @@ You can confirm the module is available by using `xcaddy list-modules`. Almost like Caddy v1, here is an example `filter` we need to include in the all the services we want themed: -``` +```nginx filter { content_type text/html.* search_pattern @@ -242,7 +242,7 @@ filter { With `caddy2-filter`, we need to also add this option in the global option block: -``` +```nginx { order filter after encode } @@ -253,7 +253,7 @@ And if you're using a reverse proxy, you also need to include `header_up -Accept
Full example of a Caddyfile -``` +```nginx { order filter after encode } @@ -275,7 +275,7 @@ radarr.example.com { > :point_right: If your service requires you to ignore a header, use the `header_down` subdirective in the `reverse_proxy` directive. For example, qBittorrent usage would look like this: -``` +```nginx reverse_proxy 127.0.0.1:8080 { header_up -Accept-Encoding header_down -x-webkit-csp @@ -284,7 +284,7 @@ reverse_proxy 127.0.0.1:8080 { ``` #### Subfolder/directory example -```caddy +```nginx route /sonarr/* { filter { content_type text/html.*