From 695d0de985f54736556437ad2042ec09559ac5f8 Mon Sep 17 00:00:00 2001 From: GilbN Date: Sun, 4 Aug 2019 14:21:49 +0200 Subject: [PATCH] Update README.md --- README.md | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index cc51df48..52dafd30 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ Example: `https://gilbn.github.io/theme.park/CSS/themes/sonarr/dark.css` 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 or a browser addon called Stylus. ## Subfilter method -### nginx +### Nginx Add this to your reverse proxy: ```nginx @@ -42,37 +42,38 @@ sub_filter_once on; ``` Where `APP_NAME` is the app you want to theme and `THEME.css` is the name of the theme. e.g. `aquamarine.css` -Here is a complete example: - -
Expand - +#### Example: ```nginx -# REDIRECT HTTP TRAFFIC TO https://[domain.com] -server { - listen 80; - server_name ombi.domain.com; - return 301 https://$server_name$request_uri; -} -server { - listen 443 ssl http2; - server_name ombi.domain.com; - -#SSL settings - include /config/nginx/ssl.conf - -location / { - proxy_pass http://192.168.1.2:8701; +location /sonarr { + proxy_pass http://localhost:8989/sonarr; include /config/nginx/proxy.conf; proxy_set_header Accept-Encoding ""; sub_filter '' - ' + ' '; sub_filter_once on; } } ``` -
+ +### Apache (Untested) +```apache +AddOutputFilterByType SUBSTITUTE text/html + Substitute 's| ' +';|' + ``` + +#### Example: +```apache + + ProxyPass http://localhost:8989/sonarr + ProxyPassReverse http://localhost:8989/sonarr +AddOutputFilterByType SUBSTITUTE text/html + Substitute 's| ' +';|' + + ``` ## Stylus method Stylus is a browser extention that can inject custom css to the webpage of your choosing.