mirror of
https://github.com/gilbN/theme.park.git
synced 2024-11-22 02:53:08 +01:00
Initial Home page
commit
594f64a87e
46
Setup.md
Normal file
46
Setup.md
Normal file
@ -0,0 +1,46 @@
|
||||
## Setup
|
||||
|
||||
### Subfilter
|
||||
|
||||
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:
|
||||
|
||||
```nginx
|
||||
proxy_set_header Accept-Encoding "";
|
||||
sub_filter
|
||||
'</head>'
|
||||
'<link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/themes/CUSTOM_CSS.css">
|
||||
</head>';
|
||||
sub_filter_once on;
|
||||
```
|
||||
Where `CUSTOM_CSS` is the name of the theme. e.g. `nzbget-plex.css`
|
||||
|
||||
Here is a complete example:
|
||||
|
||||
```nginx
|
||||
# REDIRECT HTTP TRAFFIC TO https://[domain.com]
|
||||
server {
|
||||
listen 80;
|
||||
server_name plpp.domain.com;
|
||||
return 301 https://$server_name$request_uri;
|
||||
}
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name plpp.domain.com;
|
||||
|
||||
#SSL settings
|
||||
include /config/nginx/ssl.conf
|
||||
|
||||
location / {
|
||||
proxy_pass http://192.168.1.2:8701;
|
||||
include /config/nginx/proxy.conf;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
sub_filter
|
||||
'</head>'
|
||||
'<link rel="stylesheet" type="text/css" href="https://gilbn.github.io/theme.park/CSS/themes/plpporg.css">
|
||||
</head>';
|
||||
sub_filter_once on;
|
||||
}
|
||||
}
|
||||
```
|
Loading…
Reference in New Issue
Block a user