caddyv2 subfolder

GilbN 2020-07-18 00:28:11 +02:00
parent 12499d5387
commit 6a2a92c5fc

@ -282,7 +282,23 @@ reverse_proxy 127.0.0.1:8080 {
header_down -content-security-policy
}
```
#### Subfolder/directory example
```caddy
route /sonarr/* {
filter {
content_type text/html.*
search_pattern </head>
replacement "<link rel='stylesheet' type='text/css' href='https://gilbn.github.io/theme.park/CSS/themes/sonarr/plex.css'></head>"
}
reverse_proxy /sonarr/* http://sonarr:8989 {
header_up -Accept-Encoding
header_down -x-webkit-csp
header_down -content-security-policy
}
}
```
---
Feel free to make any adjustments! Thanks everyone for the help!