Updated Setup (markdown)
parent
6a2a92c5fc
commit
4bf587637a
12
Setup.md
12
Setup.md
@ -202,7 +202,7 @@ You will have to create your own Caddy image that includes the `caddy2-filter`.
|
|||||||
|
|
||||||
`Dockerfile`:
|
`Dockerfile`:
|
||||||
|
|
||||||
```
|
```docker
|
||||||
FROM caddy:2.0.0-builder AS builder
|
FROM caddy:2.0.0-builder AS builder
|
||||||
|
|
||||||
RUN caddy-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:
|
Almost like Caddy v1, here is an example `filter` we need to include in the all the services we want themed:
|
||||||
|
|
||||||
```
|
```nginx
|
||||||
filter {
|
filter {
|
||||||
content_type text/html.*
|
content_type text/html.*
|
||||||
search_pattern </head>
|
search_pattern </head>
|
||||||
@ -242,7 +242,7 @@ filter {
|
|||||||
|
|
||||||
With `caddy2-filter`, we need to also add this option in the global option block:
|
With `caddy2-filter`, we need to also add this option in the global option block:
|
||||||
|
|
||||||
```
|
```nginx
|
||||||
{
|
{
|
||||||
order filter after encode
|
order filter after encode
|
||||||
}
|
}
|
||||||
@ -253,7 +253,7 @@ And if you're using a reverse proxy, you also need to include `header_up -Accept
|
|||||||
<details>
|
<details>
|
||||||
<summary>Full example of a Caddyfile</summary>
|
<summary>Full example of a Caddyfile</summary>
|
||||||
|
|
||||||
```
|
```nginx
|
||||||
{
|
{
|
||||||
order filter after encode
|
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:
|
> :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 {
|
reverse_proxy 127.0.0.1:8080 {
|
||||||
header_up -Accept-Encoding
|
header_up -Accept-Encoding
|
||||||
header_down -x-webkit-csp
|
header_down -x-webkit-csp
|
||||||
@ -284,7 +284,7 @@ reverse_proxy 127.0.0.1:8080 {
|
|||||||
```
|
```
|
||||||
#### Subfolder/directory example
|
#### Subfolder/directory example
|
||||||
|
|
||||||
```caddy
|
```nginx
|
||||||
route /sonarr/* {
|
route /sonarr/* {
|
||||||
filter {
|
filter {
|
||||||
content_type text/html.*
|
content_type text/html.*
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user