mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-12-12 13:42:22 +08:00
Processed apps directory via GitHub Actions
This commit is contained in:
parent
7f9d08ae92
commit
de2abf980b
16
appstore/affine/README.md
Normal file
16
appstore/affine/README.md
Normal file
@ -0,0 +1,16 @@
|
||||
# AFFiNE
|
||||
|
||||
AFFiNE是一个具有完全合并文档、白板和数据库的工作空间
|
||||
|
||||
![AFFiNE](https://file.lifebus.top/imgs/affine_cover.png)
|
||||
|
||||
![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue)
|
||||
|
||||
## 简介
|
||||
|
||||
AFFiNE 是一个开源的全能工作空间和操作系统,用于组装您的知识库以及更多——维基、知识管理、演示和数字资产。它是 Notion 和 Miro
|
||||
的更好替代品。
|
||||
|
||||
---
|
||||
|
||||
![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png)
|
14
appstore/affine/data.yml
Normal file
14
appstore/affine/data.yml
Normal file
@ -0,0 +1,14 @@
|
||||
additionalProperties:
|
||||
key: affine
|
||||
name: AFFiNE
|
||||
tags:
|
||||
- WebSite
|
||||
- Local
|
||||
shortDescZh: AFFiNE是一个具有完全合并文档、白板和数据库的工作空间
|
||||
shortDescEn: AFFiNE is a workspace with fully merged docs, whiteboards and databases.
|
||||
type: website
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: https://affine.pro/
|
||||
github: https://github.com/toeverything/AFFiNE/
|
||||
document: https://docs.affine.pro/docs/code-of-conduct/
|
BIN
appstore/affine/logo.png
Normal file
BIN
appstore/affine/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 116 KiB |
66
appstore/affine/stable-1623f5d/.env
Normal file
66
appstore/affine/stable-1623f5d/.env
Normal file
@ -0,0 +1,66 @@
|
||||
# Postgres 服务 (前置检查) [必填]
|
||||
PANEL_POSTGRES_TYPE=postgresql
|
||||
|
||||
# Redis 服务 (前置检查) [必填]
|
||||
PANEL_REDIS_TYPE=redis
|
||||
|
||||
# 数据持久化路径 [必填]
|
||||
AFFINE_ROOT_PATH=/home/affine
|
||||
|
||||
# WebUI 端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=3010
|
||||
|
||||
# 通讯端口 [必填]
|
||||
PANEL_APP_PORT_COMMUNICATION=5555
|
||||
|
||||
# 服务外部地址 [必填]
|
||||
AFFINE_SERVER_EXTERNAL_URL=http://127.0.0.1:3010
|
||||
|
||||
# 是否启用 HTTPS [必填]
|
||||
AFFINE_SERVER_HTTPS=false
|
||||
|
||||
# SMTP 服务器地址 [必填]
|
||||
MAILER_HOST=smtp.163.com
|
||||
|
||||
# SMTP 服务器端口 [必填]
|
||||
MAILER_PORT=465
|
||||
|
||||
# 邮件发送者 [必填]
|
||||
MAILER_SENDER=
|
||||
|
||||
# SMTP 用户名 [必填]
|
||||
MAILER_USER=
|
||||
|
||||
# SMTP 密码 [必填]
|
||||
MAILER_PASSWORD=
|
||||
|
||||
# 数据库 主机地址 [必填]
|
||||
POSTGRES_HOST=127.0.0.1
|
||||
|
||||
# 数据库 端口 [必填]
|
||||
POSTGRES_PORT=5432
|
||||
|
||||
# 数据库 名称 [必填]
|
||||
POSTGRES_NAME=affine
|
||||
|
||||
# 数据库 用户名 [必填]
|
||||
POSTGRES_USER=affine
|
||||
|
||||
# 数据库 密码 [必填]
|
||||
POSTGRES_PASSWORD=
|
||||
|
||||
# Redis 主机 [必填]
|
||||
REDIS_SERVER_HOST=127.0.0.1
|
||||
|
||||
# Redis 端口 [必填]
|
||||
REDIS_SERVER_PORT=6379
|
||||
|
||||
# Redis 索引 (0-20) [必填]
|
||||
REDIS_SERVER_DATABASE=0
|
||||
|
||||
# Redis 用户
|
||||
REDIS_SERVER_USER=
|
||||
|
||||
# Redis 密码
|
||||
REDIS_SERVER_PASSWORD=
|
||||
|
183
appstore/affine/stable-1623f5d/data.yml
Normal file
183
appstore/affine/stable-1623f5d/data.yml
Normal file
@ -0,0 +1,183 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_POSTGRES_SERVICE
|
||||
required: true
|
||||
type: service
|
||||
default: postgresql
|
||||
envKey: PANEL_POSTGRES_TYPE
|
||||
labelZh: Postgres 服务 (前置检查)
|
||||
labelEn: Postgres Service (Pre-check)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: PostgreSQL
|
||||
value: postgresql
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_REDIS_SERVICE
|
||||
required: true
|
||||
type: service
|
||||
default: redis
|
||||
envKey: PANEL_REDIS_TYPE
|
||||
labelZh: Redis 服务 (前置检查)
|
||||
labelEn: Redis Service (Pre-check)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: Redis
|
||||
value: redis
|
||||
- default: "/home/affine"
|
||||
edit: true
|
||||
envKey: AFFINE_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 3010
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 5555
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_COMMUNICATION
|
||||
labelZh: 通讯端口
|
||||
labelEn: Communication port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "http://127.0.0.1:3010"
|
||||
edit: true
|
||||
envKey: AFFINE_SERVER_EXTERNAL_URL
|
||||
labelZh: 服务外部地址
|
||||
labelEn: Service external address
|
||||
required: true
|
||||
type: text
|
||||
- default: "false"
|
||||
edit: true
|
||||
envKey: AFFINE_SERVER_HTTPS
|
||||
labelZh: 是否启用 HTTPS
|
||||
labelEn: Enable HTTPS
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 已开启
|
||||
value: "true"
|
||||
- label: 未开启
|
||||
value: "false"
|
||||
- default: "smtp.163.com"
|
||||
edit: true
|
||||
envKey: MAILER_HOST
|
||||
labelZh: SMTP 服务器地址
|
||||
labelEn: SMTP server address
|
||||
required: true
|
||||
type: text
|
||||
- default: 465
|
||||
edit: true
|
||||
envKey: MAILER_PORT
|
||||
labelZh: SMTP 服务器端口
|
||||
labelEn: SMTP server port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: MAILER_SENDER
|
||||
labelZh: 邮件发送者
|
||||
labelEn: Email sender
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: MAILER_USER
|
||||
labelZh: SMTP 用户名
|
||||
labelEn: SMTP username
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: MAILER_PASSWORD
|
||||
labelZh: SMTP 密码
|
||||
labelEn: SMTP password
|
||||
required: true
|
||||
type: password
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: POSTGRES_HOST
|
||||
labelZh: 数据库 主机地址
|
||||
labelEn: Database Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 5432
|
||||
edit: true
|
||||
envKey: POSTGRES_PORT
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "affine"
|
||||
edit: true
|
||||
envKey: POSTGRES_NAME
|
||||
labelZh: 数据库 名称
|
||||
labelEn: Database Name
|
||||
required: true
|
||||
rule: paramCommon
|
||||
type: text
|
||||
- default: "affine"
|
||||
edit: true
|
||||
envKey: POSTGRES_USER
|
||||
labelZh: 数据库 用户名
|
||||
labelEn: Database Username
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: POSTGRES_PASSWORD
|
||||
labelZh: 数据库 密码
|
||||
labelEn: Database Password
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: REDIS_SERVER_HOST
|
||||
labelZh: Redis 主机
|
||||
labelEn: Redis Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 6379
|
||||
edit: true
|
||||
envKey: REDIS_SERVER_PORT
|
||||
labelZh: Redis 端口
|
||||
labelEn: Redis Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: 0
|
||||
edit: true
|
||||
envKey: REDIS_SERVER_DATABASE
|
||||
labelZh: Redis 索引 (0-20)
|
||||
labelEn: Redis Index (0-20)
|
||||
required: true
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: REDIS_SERVER_USER
|
||||
labelZh: Redis 用户
|
||||
labelEn: Redis User
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: REDIS_SERVER_PASSWORD
|
||||
labelZh: Redis 密码
|
||||
labelEn: Redis Password
|
||||
required: false
|
||||
type: password
|
36
appstore/affine/stable-1623f5d/docker-compose.yml
Normal file
36
appstore/affine/stable-1623f5d/docker-compose.yml
Normal file
@ -0,0 +1,36 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
affine:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- node ./scripts/self-host-predeploy && node ./dist/index.js
|
||||
container_name: affine
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- NODE_OPTIONS="--import=./scripts/register.js"
|
||||
- AFFINE_CONFIG_PATH=/root/.affine/config
|
||||
- REDIS_SERVER_HOST=redis
|
||||
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_NAME}
|
||||
- NODE_ENV=production
|
||||
- TELEMETRY_ENABLE=false
|
||||
- AFFINE_SERVER_HOST=localhost
|
||||
- AFFINE_SERVER_PORT=3010
|
||||
- AFFINE_SERVER_HTTPS=false
|
||||
- AFFINE_SERVER_EXTERNAL_URL=http://127.0.0.1:3010
|
||||
image: ghcr.io/toeverything/affine-graphql:stable-1623f5d
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:3010
|
||||
- ${PANEL_APP_PORT_COMMUNICATION}:5555
|
||||
restart: always
|
||||
volumes:
|
||||
- ${AFFINE_ROOT_PATH}/config:/root/.affine/config
|
||||
- ${AFFINE_ROOT_PATH}/storage:/root/.affine/storage
|
2
appstore/affine/stable-1623f5d/envs/default.env
Normal file
2
appstore/affine/stable-1623f5d/envs/default.env
Normal file
@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
2
appstore/affine/stable-1623f5d/envs/global.env
Normal file
2
appstore/affine/stable-1623f5d/envs/global.env
Normal file
@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
17
appstore/affine/stable-1623f5d/scripts/init.sh
Normal file
17
appstore/affine/stable-1623f5d/scripts/init.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
10
appstore/affine/stable-1623f5d/scripts/uninstall.sh
Normal file
10
appstore/affine/stable-1623f5d/scripts/uninstall.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
17
appstore/affine/stable-1623f5d/scripts/upgrade.sh
Normal file
17
appstore/affine/stable-1623f5d/scripts/upgrade.sh
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
sed -i '/^GLOBAL_ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
66
dockge/affine/.env
Normal file
66
dockge/affine/.env
Normal file
@ -0,0 +1,66 @@
|
||||
# Postgres 服务 (前置检查) [必填]
|
||||
PANEL_POSTGRES_TYPE=postgresql
|
||||
|
||||
# Redis 服务 (前置检查) [必填]
|
||||
PANEL_REDIS_TYPE=redis
|
||||
|
||||
# 数据持久化路径 [必填]
|
||||
AFFINE_ROOT_PATH=/home/affine
|
||||
|
||||
# WebUI 端口 [必填]
|
||||
PANEL_APP_PORT_HTTP=3010
|
||||
|
||||
# 通讯端口 [必填]
|
||||
PANEL_APP_PORT_COMMUNICATION=5555
|
||||
|
||||
# 服务外部地址 [必填]
|
||||
AFFINE_SERVER_EXTERNAL_URL=http://127.0.0.1:3010
|
||||
|
||||
# 是否启用 HTTPS [必填]
|
||||
AFFINE_SERVER_HTTPS=false
|
||||
|
||||
# SMTP 服务器地址 [必填]
|
||||
MAILER_HOST=smtp.163.com
|
||||
|
||||
# SMTP 服务器端口 [必填]
|
||||
MAILER_PORT=465
|
||||
|
||||
# 邮件发送者 [必填]
|
||||
MAILER_SENDER=
|
||||
|
||||
# SMTP 用户名 [必填]
|
||||
MAILER_USER=
|
||||
|
||||
# SMTP 密码 [必填]
|
||||
MAILER_PASSWORD=
|
||||
|
||||
# 数据库 主机地址 [必填]
|
||||
POSTGRES_HOST=127.0.0.1
|
||||
|
||||
# 数据库 端口 [必填]
|
||||
POSTGRES_PORT=5432
|
||||
|
||||
# 数据库 名称 [必填]
|
||||
POSTGRES_NAME=affine
|
||||
|
||||
# 数据库 用户名 [必填]
|
||||
POSTGRES_USER=affine
|
||||
|
||||
# 数据库 密码 [必填]
|
||||
POSTGRES_PASSWORD=
|
||||
|
||||
# Redis 主机 [必填]
|
||||
REDIS_SERVER_HOST=127.0.0.1
|
||||
|
||||
# Redis 端口 [必填]
|
||||
REDIS_SERVER_PORT=6379
|
||||
|
||||
# Redis 索引 (0-20) [必填]
|
||||
REDIS_SERVER_DATABASE=0
|
||||
|
||||
# Redis 用户
|
||||
REDIS_SERVER_USER=
|
||||
|
||||
# Redis 密码
|
||||
REDIS_SERVER_PASSWORD=
|
||||
|
36
dockge/affine/docker-compose.yml
Normal file
36
dockge/affine/docker-compose.yml
Normal file
@ -0,0 +1,36 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
services:
|
||||
affine:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- node ./scripts/self-host-predeploy && node ./dist/index.js
|
||||
container_name: affine
|
||||
env_file:
|
||||
- ./envs/global.env
|
||||
- .env
|
||||
environment:
|
||||
- NODE_OPTIONS="--import=./scripts/register.js"
|
||||
- AFFINE_CONFIG_PATH=/root/.affine/config
|
||||
- REDIS_SERVER_HOST=redis
|
||||
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_NAME}
|
||||
- NODE_ENV=production
|
||||
- TELEMETRY_ENABLE=false
|
||||
- AFFINE_SERVER_HOST=localhost
|
||||
- AFFINE_SERVER_PORT=3010
|
||||
- AFFINE_SERVER_HTTPS=false
|
||||
- AFFINE_SERVER_EXTERNAL_URL=http://127.0.0.1:3010
|
||||
image: ghcr.io/toeverything/affine-graphql:stable-1623f5d
|
||||
labels:
|
||||
createdBy: Apps
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:3010
|
||||
- ${PANEL_APP_PORT_COMMUNICATION}:5555
|
||||
restart: always
|
||||
volumes:
|
||||
- ${AFFINE_ROOT_PATH}/config:/root/.affine/config
|
||||
- ${AFFINE_ROOT_PATH}/storage:/root/.affine/storage
|
2
dockge/affine/envs/default.env
Normal file
2
dockge/affine/envs/default.env
Normal file
@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
2
dockge/affine/envs/global.env
Normal file
2
dockge/affine/envs/global.env
Normal file
@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
Loading…
Reference in New Issue
Block a user