Skip to content

Instantly share code, notes, and snippets.

@ibel001

ibel001/default

Created Mar 11, 2016
Embed
What would you like to do?
Reverse Proxy Serviio Media Browser, Console with nginx
#Serviio Console
upstream serviiocs {
server xxx.xxx.xxx.xxx:23423; #Serviio Console
}
server
{
listen 80;
server_name console.mydomain;
location /
{
proxy_pass http://serviiocs/console/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
# By default we dont want redirect it
proxy_redirect off;
# Cache
proxy_buffering off;
proxy_cache off;
}
location /rest/
{
proxy_pass http://serviiocs/rest/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
# By default we dont want redirect it
proxy_redirect off;
# Cache
proxy_buffering off;
proxy_cache off;
}
}
#Serviio Mediabrowser
upstream serviiomb {
server xxx.xxx.xxx.xxx:23424; #Serviio Media Browser
}
server
{
listen 80;
server_name media.mydomain;
location /
{
proxy_pass http://serviiomb/mediabrowser/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
# By default we dont want redirect it
proxy_redirect off;
# Cache
proxy_buffering off;
proxy_cache off;
}
location /cds/
{
proxy_pass http://serviiomb/cds/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
# By default we dont want redirect it
proxy_redirect off;
# Cache
proxy_buffering off;
proxy_cache off;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment