浏览代码

Merge pull request #108 from meienberger/app/plex

[APP] Plex Media Server
Nicolas Meienberger 3 年之前
父节点
当前提交
5095a0e85c

+ 14 - 0
apps/plex/config.json

@@ -0,0 +1,14 @@
+{
+  "name": "Plex",
+  "available": true,
+  "port": 32400,
+  "id": "plex",
+  "url_suffix": "/web",
+  "categories": ["media"],
+  "description": "",
+  "short_desc": "Stream Movies & TV Shows",
+  "author": "plexinc",
+  "source": "https://github.com/plexinc/pms-docker",
+  "image": "/logos/apps/plex.png",
+  "form_fields": {}
+}

+ 19 - 0
apps/plex/docker-compose.yml

@@ -0,0 +1,19 @@
+version: "3.7"
+
+services:
+  plex:
+    image: lscr.io/linuxserver/plex:1.26.2
+    container_name: plex
+    # network_mode: host
+    environment:
+      - PUID=1000
+      - PGID=1000
+      - VERSION=docker
+    volumes:
+      - ${APP_DATA_DIR}/data/config:/config
+      - ${ROOT_FOLDER_HOST}/media/data:/media
+    restart: unless-stopped
+    ports:
+      - ${APP_PORT}:32400
+    networks:
+      - tipi_main_network

+ 5 - 0
apps/plex/metadata/description.md

@@ -0,0 +1,5 @@
+## Stream Movies & TV Shows
+
+Plex Media Server is a digital media player and organizational tool that allows you to access the music, pictures, and videos stored on one computer with any other computer or compatible mobile device. You can install the Plex Media Server software on a Windows, Mac, or Linux computer, or a compatible network-attached storage (NAS) device, then play it back on any other internet-connected device capable of running the Plex app.
+
+Use any compatible device to watch movies, listen to music, and view pictures stored on a computer that runs Plex Media Server. Access media files stored on your Plex Media Server computer remotely over the internet. Allow friends and family to access your movies, music, and pictures over the internet. 

+ 1 - 0
packages/common/src/types/app.types.ts

@@ -60,4 +60,5 @@ export interface AppConfig {
   installed: boolean;
   categories: AppCategoriesEnum[];
   status: AppStatusEnum;
+  url_suffix: string;
 }

二进制
packages/dashboard/public/logos/apps/plex.png


+ 1 - 1
packages/dashboard/src/modules/Apps/containers/AppDetails.tsx

@@ -90,7 +90,7 @@ const AppDetails: React.FC<IProps> = ({ app }) => {
   };
 
   const handleOpen = () => {
-    window.open(`http://${internalIp}:${app.port}`, '_blank', 'noreferrer');
+    window.open(`http://${internalIp}:${app.port}${app.url_suffix || ''}`, '_blank', 'noreferrer');
   };
 
   console.log(app.description);