1
0
mirror of https://github.com/Adam-Ant/media-server-in-a-box synced 2024-12-20 14:44:34 +00:00

Muximux support

This commit is contained in:
Adam Dodman 2017-03-02 00:20:03 +00:00
parent 9a6cca8e7f
commit 35a353da6a
2 changed files with 21 additions and 1 deletions

View File

@ -74,9 +74,17 @@ services:
web: web:
image: nginx:alpine image: nginx:alpine
volumes: volumes:
- $VOLDIR/launcher/nginx.cfg:/etc/nginx/conf.d/media.conf - $VOLDIR/nginx/nginx.cfg:/etc/nginx/conf.d/media.conf
- $VOLDIR/nginx/Muximux:/www
restart: always restart: always
ports: ports:
- "80:80" - "80:80"
depends_on: depends_on:
- plexpy - plexpy
php:
image: php:fpm-alpine
working_dir: /www
volumes:
- $VOLDIR/nginx/Muximux:/www

View File

@ -3,6 +3,18 @@ server {
listen 80 default_server; listen 80 default_server;
server_name ""; server_name "";
location / {
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
location /plex { location /plex {
set $test ""; set $test "";