diff --git a/apps/stash/0.27.0/.env.sample b/apps/stash/0.27.0/.env.sample new file mode 100644 index 00000000..2dc49d8d --- /dev/null +++ b/apps/stash/0.27.0/.env.sample @@ -0,0 +1,13 @@ +CONFIG_PATH="./data/config" +CONTAINER_NAME="stash" +PANEL_APP_PORT_HTTP=40299 +STASH_BLOBS="./data/blobs" +STASH_BLOBS_INTERNAL="/blobs" +STASH_CACHE="./data/cache" +STASH_CACHE_INTERNAL="/cache" +STASH_DATA="./data/data" +STASH_DATA_INTERNAL="/data" +STASH_GENERATED="./data/generated" +STASH_GENERATED_INTERNAL="/generated" +STASH_METADATA="./data/metadata" +STASH_METADATA_INTERNAL="/metadata" diff --git a/apps/stash/0.27.0/data.yml b/apps/stash/0.27.0/data.yml new file mode 100644 index 00000000..c728061e --- /dev/null +++ b/apps/stash/0.27.0/data.yml @@ -0,0 +1,87 @@ +additionalProperties: + formFields: + - default: "40299" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "./data/config" + edit: true + envKey: CONFIG_PATH + labelEn: Config Path + labelZh: 配置路径 + required: true + type: text + - default: "./data/data" + edit: true + envKey: STASH_DATA + labelEn: Media Data Path + labelZh: 媒体数据路径 + required: true + type: text + - default: "./data/metadata" + edit: true + envKey: STASH_METADATA + labelEn: Metadata Path + labelZh: 元数据路径 + required: true + type: text + - default: "./data/cache" + edit: true + envKey: STASH_CACHE + labelEn: Cache Path + labelZh: 缓存路径 + required: true + type: text + - default: "./data/blobs" + edit: true + envKey: STASH_BLOBS + labelEn: Blobs Path (scene covers, images) + labelZh: 二进制数据路径 (场景封面、图像) + required: true + type: text + - default: "./data/generated" + edit: true + envKey: STASH_GENERATED + labelEn: Generated Path + labelZh: 生成内容路径 + required: true + type: text + - default: "/data" + disabled: true + envKey: STASH_DATA_INTERNAL + labelEn: Internal Media Data Path + labelZh: 容器内部媒体数据路径 + required: true + type: text + - default: "/metadata" + disabled: true + envKey: STASH_METADATA_INTERNAL + labelEn: Internal Metadata Path + labelZh: 容器内部元数据路径 + required: true + type: text + - default: "/cache" + disabled: true + envKey: STASH_CACHE_INTERNAL + labelEn: Internal Cache Path + labelZh: 容器内部缓存路径 + required: true + type: text + - default: "/blobs" + disabled: true + envKey: STASH_BLOBS_INTERNAL + labelEn: Internal Blobs Path (scene covers, images) + labelZh: 容器内部二进制数据路径 (场景封面、图像) + required: true + type: text + - default: "/generated" + disabled: true + envKey: STASH_GENERATED_INTERNAL + labelEn: Internal Generated Path + labelZh: 容器内部生成内容路径 + required: true + type: text diff --git a/apps/stash/0.27.0/docker-compose.yml b/apps/stash/0.27.0/docker-compose.yml new file mode 100644 index 00000000..cc525b35 --- /dev/null +++ b/apps/stash/0.27.0/docker-compose.yml @@ -0,0 +1,30 @@ +services: + stash: + image: "stashapp/stash:v0.27.0" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}" + environment: + - STASH_STASH=${STASH_DATA_INTERNAL} + - STASH_GENERATED=${STASH_GENERATED_INTERNAL} + - STASH_METADATA=${STASH_METADATA_INTERNAL} + - STASH_CACHE=${STASH_CACHE_INTERNAL} + - STASH_PORT=${PANEL_APP_PORT_HTTP} + volumes: + - /etc/localtime:/etc/localtime:ro + - "${CONFIG_PATH}:/root/.stash" + - "${STASH_DATA}:${STASH_DATA_INTERNAL}" + - "${STASH_GENERATED}:${STASH_GENERATED_INTERNAL}" + - "${STASH_METADATA}:${STASH_METADATA_INTERNAL}" + - "${STASH_CACHE}:${STASH_CACHE_INTERNAL}" + - "${STASH_BLOBS}:${STASH_BLOBS_INTERNAL}" + labels: + createdBy: "Apps" + + +networks: + 1panel-network: + external: true diff --git a/apps/stash/README.md b/apps/stash/README.md new file mode 100644 index 00000000..5f07b362 --- /dev/null +++ b/apps/stash/README.md @@ -0,0 +1,18 @@ +# Stash + +Stash 是一个用 Go 语言编写的自托管网络应用程序,它可以组织和服务您的媒体。 + + +## 使用说明 + +假如需要公网访问,可以修改配置文件的以下项为`true` + +``` +dangerous_allow_public_without_auth: "true" +``` + +且以下值为空 + +``` +security_tripwire_accessed_from_public_internet: "" +``` \ No newline at end of file diff --git a/apps/stash/data.yml b/apps/stash/data.yml new file mode 100644 index 00000000..060f1669 --- /dev/null +++ b/apps/stash/data.yml @@ -0,0 +1,19 @@ +name: Stash +tags: + - 多媒体 +title: 媒体管理工具 +description: 媒体管理工具 +additionalProperties: + key: stash + name: Stash + tags: + - Media + shortDescZh: 媒体管理工具 + shortDescEn: Media Management Tools + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://stashapp.cc + github: https://github.com/stashapp/stash + document: https://docs.stashapp.cc diff --git a/apps/stash/latest/.env.sample b/apps/stash/latest/.env.sample new file mode 100644 index 00000000..2dc49d8d --- /dev/null +++ b/apps/stash/latest/.env.sample @@ -0,0 +1,13 @@ +CONFIG_PATH="./data/config" +CONTAINER_NAME="stash" +PANEL_APP_PORT_HTTP=40299 +STASH_BLOBS="./data/blobs" +STASH_BLOBS_INTERNAL="/blobs" +STASH_CACHE="./data/cache" +STASH_CACHE_INTERNAL="/cache" +STASH_DATA="./data/data" +STASH_DATA_INTERNAL="/data" +STASH_GENERATED="./data/generated" +STASH_GENERATED_INTERNAL="/generated" +STASH_METADATA="./data/metadata" +STASH_METADATA_INTERNAL="/metadata" diff --git a/apps/stash/latest/data.yml b/apps/stash/latest/data.yml new file mode 100644 index 00000000..c728061e --- /dev/null +++ b/apps/stash/latest/data.yml @@ -0,0 +1,87 @@ +additionalProperties: + formFields: + - default: "40299" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "./data/config" + edit: true + envKey: CONFIG_PATH + labelEn: Config Path + labelZh: 配置路径 + required: true + type: text + - default: "./data/data" + edit: true + envKey: STASH_DATA + labelEn: Media Data Path + labelZh: 媒体数据路径 + required: true + type: text + - default: "./data/metadata" + edit: true + envKey: STASH_METADATA + labelEn: Metadata Path + labelZh: 元数据路径 + required: true + type: text + - default: "./data/cache" + edit: true + envKey: STASH_CACHE + labelEn: Cache Path + labelZh: 缓存路径 + required: true + type: text + - default: "./data/blobs" + edit: true + envKey: STASH_BLOBS + labelEn: Blobs Path (scene covers, images) + labelZh: 二进制数据路径 (场景封面、图像) + required: true + type: text + - default: "./data/generated" + edit: true + envKey: STASH_GENERATED + labelEn: Generated Path + labelZh: 生成内容路径 + required: true + type: text + - default: "/data" + disabled: true + envKey: STASH_DATA_INTERNAL + labelEn: Internal Media Data Path + labelZh: 容器内部媒体数据路径 + required: true + type: text + - default: "/metadata" + disabled: true + envKey: STASH_METADATA_INTERNAL + labelEn: Internal Metadata Path + labelZh: 容器内部元数据路径 + required: true + type: text + - default: "/cache" + disabled: true + envKey: STASH_CACHE_INTERNAL + labelEn: Internal Cache Path + labelZh: 容器内部缓存路径 + required: true + type: text + - default: "/blobs" + disabled: true + envKey: STASH_BLOBS_INTERNAL + labelEn: Internal Blobs Path (scene covers, images) + labelZh: 容器内部二进制数据路径 (场景封面、图像) + required: true + type: text + - default: "/generated" + disabled: true + envKey: STASH_GENERATED_INTERNAL + labelEn: Internal Generated Path + labelZh: 容器内部生成内容路径 + required: true + type: text diff --git a/apps/stash/latest/docker-compose.yml b/apps/stash/latest/docker-compose.yml new file mode 100644 index 00000000..c9aefb1e --- /dev/null +++ b/apps/stash/latest/docker-compose.yml @@ -0,0 +1,30 @@ +services: + stash: + image: "stashapp/stash:latest" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - "${PANEL_APP_PORT_HTTP}:${PANEL_APP_PORT_HTTP}" + environment: + - STASH_STASH=${STASH_DATA_INTERNAL} + - STASH_GENERATED=${STASH_GENERATED_INTERNAL} + - STASH_METADATA=${STASH_METADATA_INTERNAL} + - STASH_CACHE=${STASH_CACHE_INTERNAL} + - STASH_PORT=${PANEL_APP_PORT_HTTP} + volumes: + - /etc/localtime:/etc/localtime:ro + - "${CONFIG_PATH}:/root/.stash" + - "${STASH_DATA}:${STASH_DATA_INTERNAL}" + - "${STASH_GENERATED}:${STASH_GENERATED_INTERNAL}" + - "${STASH_METADATA}:${STASH_METADATA_INTERNAL}" + - "${STASH_CACHE}:${STASH_CACHE_INTERNAL}" + - "${STASH_BLOBS}:${STASH_BLOBS_INTERNAL}" + labels: + createdBy: "Apps" + + +networks: + 1panel-network: + external: true diff --git a/apps/stash/logo.png b/apps/stash/logo.png new file mode 100644 index 00000000..eafae920 Binary files /dev/null and b/apps/stash/logo.png differ