feat:添加stash到列表

This commit is contained in:
okxlin 2024-09-28 17:43:21 +08:00
parent 19bb4400c7
commit 481691e2f2
9 changed files with 297 additions and 0 deletions

View File

@ -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"

View File

@ -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

View File

@ -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

18
apps/stash/README.md Normal file
View File

@ -0,0 +1,18 @@
# Stash
Stash 是一个用 Go 语言编写的自托管网络应用程序,它可以组织和服务您的媒体。
## 使用说明
假如需要公网访问,可以修改配置文件的以下项为`true`
```
dangerous_allow_public_without_auth: "true"
```
且以下值为空
```
security_tripwire_accessed_from_public_internet: ""
```

19
apps/stash/data.yml Normal file
View File

@ -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

View File

@ -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"

View File

@ -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

View File

@ -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

BIN
apps/stash/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB