caddyv2 subfolder
parent
12499d5387
commit
6a2a92c5fc
16
Setup.md
16
Setup.md
@ -282,7 +282,23 @@ reverse_proxy 127.0.0.1:8080 {
|
|||||||
header_down -content-security-policy
|
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!
|
Feel free to make any adjustments! Thanks everyone for the help!
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user