diff --git a/Setup.md b/Setup.md index 13522bd..8b821bd 100644 --- a/Setup.md +++ b/Setup.md @@ -4,8 +4,11 @@ As most of these apps doesn't have support for custom CSS you can get around that by using [subfilter](http://nginx.org/en/docs/http/ngx_http_sub_module.html) in Nginx. -Add this to your reverse proxy: +**If you don't know how to reverse proxy an application, please read this first. It's a really great article and will help you understand all the pieces!** + + +**Add this to your reverse proxy:** ```nginx proxy_set_header Accept-Encoding ""; sub_filter @@ -14,9 +17,11 @@ sub_filter '; sub_filter_once on; ``` -Where `CUSTOM_CSS` is the name of the theme. e.g. `nzbget-plex.css` +**Where `CUSTOM_CSS.css` is the name of the theme you want!** -Here is a complete example: + + +**Here is a complete example: ** ```nginx # REDIRECT HTTP TRAFFIC TO https://[domain.com] @@ -35,12 +40,28 @@ server { location / { proxy_pass http://192.168.1.2:8701; include /config/nginx/proxy.conf; - proxy_set_header Accept-Encoding ""; - sub_filter - '' - ' - '; - sub_filter_once on; + proxy_set_header Accept-Encoding ""; + sub_filter + '' + ' + '; + sub_filter_once on; } } +``` +**For Apache try this: (UNTESTED)** +```apache +AddOutputFilterByType SUBSTITUTE text/html + Substitute 's| ' +';|' +``` +**Like so** +```apache + + ProxyPass http://localhost:8989/sonarr + ProxyPassReverse http://localhost:8989/sonarr +AddOutputFilterByType SUBSTITUTE text/html + Substitute 's| ' +';|' + ``` \ No newline at end of file