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:
parent
9a6cca8e7f
commit
35a353da6a
@ -74,9 +74,17 @@ services:
|
||||
web:
|
||||
image: nginx:alpine
|
||||
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
|
||||
ports:
|
||||
- "80:80"
|
||||
depends_on:
|
||||
- plexpy
|
||||
|
||||
php:
|
||||
image: php:fpm-alpine
|
||||
working_dir: /www
|
||||
volumes:
|
||||
- $VOLDIR/nginx/Muximux:/www
|
||||
|
||||
|
12
nginx.cfg
12
nginx.cfg
@ -3,6 +3,18 @@ server {
|
||||
listen 80 default_server;
|
||||
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 {
|
||||
set $test "";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user