mirror of
https://github.com/Adam-Ant/media-server-in-a-box
synced 2025-02-23 04:28:34 +00:00
Update from Muximux to Organizr
This commit is contained in:
parent
5458d14bed
commit
6196e1bdf0
@ -75,7 +75,7 @@ services:
|
|||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
volumes:
|
volumes:
|
||||||
- $VOLDIR/nginx/nginx.cfg:/etc/nginx/conf.d/media.conf
|
- $VOLDIR/nginx/nginx.cfg:/etc/nginx/conf.d/media.conf
|
||||||
- $VOLDIR/nginx/Muximux:/www
|
- $VOLDIR/nginx/Organizr:/www
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
@ -86,5 +86,5 @@ services:
|
|||||||
image: php:7.0-fpm-alpine
|
image: php:7.0-fpm-alpine
|
||||||
working_dir: /www
|
working_dir: /www
|
||||||
volumes:
|
volumes:
|
||||||
- $VOLDIR/nginx/Muximux:/www
|
- $VOLDIR/nginx/Organizr:/www
|
||||||
|
|
||||||
|
38
nginx.cfg
38
nginx.cfg
@ -19,21 +19,30 @@ server {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location /auth-admin {
|
||||||
|
internal;
|
||||||
|
rewrite ^ /auth.php?admin;
|
||||||
|
}
|
||||||
|
location /auth-user {
|
||||||
|
internal;
|
||||||
|
rewrite ^ /auth.php?user;
|
||||||
|
}
|
||||||
|
|
||||||
location /plex {
|
location /plex {
|
||||||
set $test "";
|
set $test "";
|
||||||
|
|
||||||
# If a request to / comes in, 301 redirect to the main plex page,
|
# # If a request to / comes in, 301 redirect to the main plex page,
|
||||||
# but only if it doesn't contain the X-Plex-Device-Name header or query argument.
|
# # but only if it doesn't contain the X-Plex-Device-Name header or query argument.
|
||||||
# This fixes a bug where you get permission issues when accessing the web dashboard.
|
# # This fixes a bug where you get permission issues when accessing the web dashboard.
|
||||||
if ($http_x_plex_device_name = '') {
|
# if ($http_x_plex_device_name = '') {
|
||||||
set $test A;
|
# set $test A;
|
||||||
}
|
# }
|
||||||
if ($arg_X-Plex-Device-Name = '') {
|
# if ($arg_X-Plex-Device-Name = '') {
|
||||||
set $test "${test}B";
|
# set $test "${test}B";
|
||||||
}
|
# }
|
||||||
if ($test = AB) {
|
# if ($test = AB) {
|
||||||
rewrite ^/$ http://$http_host/web/index.html;
|
# rewrite ^/$ http://$http_host/web/index.html;
|
||||||
}
|
# }
|
||||||
|
|
||||||
proxy_set_header Host $http_host;
|
proxy_set_header Host $http_host;
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
@ -53,23 +62,28 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /deluge {
|
location /deluge {
|
||||||
|
auth_request /auth-admin;
|
||||||
proxy_pass http://deluge:8112/;
|
proxy_pass http://deluge:8112/;
|
||||||
proxy_set_header X-Deluge-Base "/deluge/";
|
proxy_set_header X-Deluge-Base "/deluge/";
|
||||||
}
|
}
|
||||||
|
|
||||||
location /sickrage {
|
location /sickrage {
|
||||||
|
auth_request /auth-admin;
|
||||||
proxy_pass http://sickrage:8081;
|
proxy_pass http://sickrage:8081;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /nzbget {
|
location /nzbget {
|
||||||
|
auth_request /auth-admin;
|
||||||
proxy_pass http://nzbget:6789;
|
proxy_pass http://nzbget:6789;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /plexpy {
|
location /plexpy {
|
||||||
|
auth_request /auth-user;
|
||||||
proxy_pass http://plexpy:8181;
|
proxy_pass http://plexpy:8181;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /couchpotato {
|
location /couchpotato {
|
||||||
|
auth_request /auth-admin;
|
||||||
proxy_pass http://couchpotato:5050;
|
proxy_pass http://couchpotato:5050;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -34,9 +34,9 @@ done
|
|||||||
[[ ! -a ./docker-compose.yml ]] && echo "Downloading Docker Compose config.." && curl -sSL https://raw.githubusercontent.com/Adam-Ant/media-server-in-a-box/master/docker-compose.yml > ./docker-compose.yml
|
[[ ! -a ./docker-compose.yml ]] && echo "Downloading Docker Compose config.." && curl -sSL https://raw.githubusercontent.com/Adam-Ant/media-server-in-a-box/master/docker-compose.yml > ./docker-compose.yml
|
||||||
[[ ! -a $VOLDIR/nginx/nginx.cfg ]] && echo "Downloading nginx.cfg..." && curl -sSL https://raw.githubusercontent.com/Adam-Ant/media-server-in-a-box/master/nginx.cfg > $VOLDIR/nginx/nginx.cfg
|
[[ ! -a $VOLDIR/nginx/nginx.cfg ]] && echo "Downloading nginx.cfg..." && curl -sSL https://raw.githubusercontent.com/Adam-Ant/media-server-in-a-box/master/nginx.cfg > $VOLDIR/nginx/nginx.cfg
|
||||||
|
|
||||||
[[ ! -d $VOLDIR/nginx/Muximux ]] && echo "Downloading Muximix..." && git -C $VOLDIR/nginx clone https://github.com/mescon/Muximux && chown -R 82:82 $VOLDIR/nginx/Muximux
|
[[ ! -d $VOLDIR/nginx/Organizr ]] && echo "Downloading Organizr..." && git -C $VOLDIR/nginx clone https://github.com/causefx/Organizr && chown -R 82:82 $VOLDIR/nginx/Organizr
|
||||||
|
|
||||||
cd $VOLDIR/nginx/Muximux/ && git pull
|
cd $VOLDIR/nginx/Organizr/ && git pull
|
||||||
|
|
||||||
echo "#####################################"
|
echo "#####################################"
|
||||||
echo "# Config and directory struture OK! #"
|
echo "# Config and directory struture OK! #"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user