mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2024-11-24 17:55:10 +08:00
分化 Umami 不同数据库版本
Signed-off-by: 萌森 <qyg2297248353@163.com>
This commit is contained in:
parent
97dd72d5fd
commit
f8fa0c6eac
109
apps/umami-mysql/2.12.1/data.yml
Normal file
109
apps/umami-mysql/2.12.1/data.yml
Normal file
@ -0,0 +1,109 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
required: true
|
||||
type: service
|
||||
default: postgresql
|
||||
edit: true
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelZh: 数据库 服务 (前置检查)
|
||||
labelEn: Database Service (Pre-check)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: MySQL
|
||||
value: mysql
|
||||
- label: MariaDB
|
||||
value: mariadb
|
||||
- label: Percona
|
||||
value: percona
|
||||
- default: "/home/umami"
|
||||
edit: true
|
||||
envKey: UMAMI_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 3000
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: 连接端口
|
||||
labelEn: Connection Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: APP_SECRET
|
||||
labelZh: 应用密钥
|
||||
labelEn: Application Secret
|
||||
random: true
|
||||
required: false
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: "/"
|
||||
edit: true
|
||||
envKey: BASE_PATH
|
||||
labelZh: 基础路径
|
||||
labelEn: Base Path
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: ALLOWED_FRAME_URLS
|
||||
labelZh: 允许的 frame 地址
|
||||
labelEn: Allowed frame urls
|
||||
required: false
|
||||
type: text
|
||||
- default: "0"
|
||||
edit: true
|
||||
envKey: DISABLE_BOT_CHECK
|
||||
labelZh: 禁用机器人检测
|
||||
labelEn: Disable bot detection
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 开启
|
||||
value: "1"
|
||||
- label: 关闭
|
||||
value: "0"
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: DB_HOSTNAME
|
||||
labelZh: 数据库 主机地址
|
||||
labelEn: Database Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 3306
|
||||
edit: true
|
||||
envKey: DB_PORT
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "umami"
|
||||
edit: true
|
||||
envKey: DB_USERNAME
|
||||
labelZh: 数据库 用户名
|
||||
labelEn: Database User
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: DB_PASSWORD
|
||||
labelEn: Database Password
|
||||
labelZh: 数据库 密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: "umami"
|
||||
edit: true
|
||||
envKey: DB_DATABASE_NAME
|
||||
labelZh: 数据库 名称
|
||||
labelEn: Database Name
|
||||
required: true
|
||||
type: text
|
25
apps/umami-mysql/2.12.1/docker-compose.yml
Normal file
25
apps/umami-mysql/2.12.1/docker-compose.yml
Normal file
@ -0,0 +1,25 @@
|
||||
version: "3.8"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
umami:
|
||||
image: ghcr.io/umami-software/umami:mysql-v2.12.1
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:3000
|
||||
env_file:
|
||||
- /etc/1panel/envs/global.env
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
environment:
|
||||
- DISABLE_TELEMETRY = 1
|
||||
- REMOVE_TRAILING_SLASH = 1
|
||||
- DATABASE_TYPE=mysql
|
||||
- DATABASE_URL=mysql://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOSTNAME}:${DB_PORT}/${DB_DATABASE_NAME}
|
15
apps/umami-mysql/2.12.1/scripts/init.sh
Normal file
15
apps/umami-mysql/2.12.1/scripts/init.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
10
apps/umami-mysql/2.12.1/scripts/uninstall.sh
Normal file
10
apps/umami-mysql/2.12.1/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
|
15
apps/umami-mysql/2.12.1/scripts/upgrade.sh
Normal file
15
apps/umami-mysql/2.12.1/scripts/upgrade.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
39
apps/umami-mysql/README.md
Normal file
39
apps/umami-mysql/README.md
Normal file
@ -0,0 +1,39 @@
|
||||
# Umami MySQL版
|
||||
|
||||
为速度和效率而构建的网站分析
|
||||
|
||||
Umami 网站分析提供您实时做出决策所需的数据。
|
||||
|
||||
![Umami](https://file.lifebus.top/imgs/umami_cover.jpg)
|
||||
|
||||
## 简介
|
||||
|
||||
Umami 让您轻松分析数据
|
||||
|
||||
+ 便于使用
|
||||
|
||||
Umami 功能强大而简单,易于使用和理解,不需要复杂的设置或标签配置。
|
||||
|
||||
+ UTM 和自定义事件
|
||||
|
||||
Umami 会自动理解带有 UTM 参数的链接,并让您根据 UTM 查看和过滤您的网站数据。此外,您还可以跟踪网站上的任何事件,例如按钮点击、表单提交、购买、新闻通讯注册等。
|
||||
|
||||
+ 没有 Cookie 横幅
|
||||
|
||||
所有数据均经过 Umami 匿名处理,并且不会收集您网站用户的任何个人信息。您无需选择加入 Cookie
|
||||
横幅即可跟踪网站的性能,从而为您的用户提供更好、更值得信赖的体验。
|
||||
默认情况下,Umami 符合 GDPRP 和 CCPA。
|
||||
|
||||
## 环境准备
|
||||
|
||||
+ 数据库支持
|
||||
+ `MySQL` 版本:`5.7+`
|
||||
+ `PostgreSQL` 版本:`12.14+`
|
||||
|
||||
## 安装说明
|
||||
|
||||
> 默认管理员帐户
|
||||
>
|
||||
> 用户名: admin
|
||||
>
|
||||
> 密码: umami
|
20
apps/umami-mysql/data.yml
Normal file
20
apps/umami-mysql/data.yml
Normal file
@ -0,0 +1,20 @@
|
||||
name: Umami MySQL版
|
||||
title: 为速度和效率而构建的网站分析
|
||||
description: 为速度和效率而构建的网站分析
|
||||
additionalProperties:
|
||||
key: umami-mysql
|
||||
name: Umami MySQL版
|
||||
tags:
|
||||
- WebSite
|
||||
- Database
|
||||
- Middleware
|
||||
- Runtime
|
||||
- Local
|
||||
shortDescZh: 为速度和效率而构建的网站分析
|
||||
shortDescEn: A website analytics tool that is built for speed and efficiency
|
||||
type: website
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: https://umami.is/
|
||||
github: https://github.com/umami-software/umami/
|
||||
document: https://umami.is/docs/
|
BIN
apps/umami-mysql/logo.png
Normal file
BIN
apps/umami-mysql/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
105
apps/umami-pg/2.12.1/data.yml
Normal file
105
apps/umami-pg/2.12.1/data.yml
Normal file
@ -0,0 +1,105 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- child:
|
||||
default: ""
|
||||
envKey: PANEL_DB_HOST
|
||||
required: true
|
||||
type: service
|
||||
default: postgresql
|
||||
edit: true
|
||||
envKey: PANEL_DB_TYPE
|
||||
labelZh: 数据库 服务 (前置检查)
|
||||
labelEn: Database Service (Pre-check)
|
||||
required: true
|
||||
type: apps
|
||||
values:
|
||||
- label: PostgreSQL
|
||||
value: postgresql
|
||||
- default: "/home/umami"
|
||||
edit: true
|
||||
envKey: UMAMI_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 3000
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: 连接端口
|
||||
labelEn: Connection Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: APP_SECRET
|
||||
labelZh: 应用密钥
|
||||
labelEn: Application Secret
|
||||
random: true
|
||||
required: false
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: "/"
|
||||
edit: true
|
||||
envKey: BASE_PATH
|
||||
labelZh: 基础路径
|
||||
labelEn: Base Path
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: ALLOWED_FRAME_URLS
|
||||
labelZh: 允许的 frame 地址
|
||||
labelEn: Allowed frame urls
|
||||
required: false
|
||||
type: text
|
||||
- default: "0"
|
||||
edit: true
|
||||
envKey: DISABLE_BOT_CHECK
|
||||
labelZh: 禁用机器人检测
|
||||
labelEn: Disable bot detection
|
||||
required: true
|
||||
type: select
|
||||
values:
|
||||
- label: 开启
|
||||
value: "1"
|
||||
- label: 关闭
|
||||
value: "0"
|
||||
- default: "127.0.0.1"
|
||||
edit: true
|
||||
envKey: DB_HOSTNAME
|
||||
labelZh: 数据库 主机地址
|
||||
labelEn: Database Host
|
||||
required: true
|
||||
type: text
|
||||
- default: 5432
|
||||
edit: true
|
||||
envKey: DB_PORT
|
||||
labelZh: 数据库 端口
|
||||
labelEn: Database Port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: "umami"
|
||||
edit: true
|
||||
envKey: DB_USERNAME
|
||||
labelZh: 数据库 用户名
|
||||
labelEn: Database User
|
||||
required: true
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: DB_PASSWORD
|
||||
labelEn: Database Password
|
||||
labelZh: 数据库 密码
|
||||
random: true
|
||||
required: true
|
||||
rule: paramComplexity
|
||||
type: password
|
||||
- default: "umami"
|
||||
edit: true
|
||||
envKey: DB_DATABASE_NAME
|
||||
labelZh: 数据库 名称
|
||||
labelEn: Database Name
|
||||
required: true
|
||||
type: text
|
25
apps/umami-pg/2.12.1/docker-compose.yml
Normal file
25
apps/umami-pg/2.12.1/docker-compose.yml
Normal file
@ -0,0 +1,25 @@
|
||||
version: "3.8"
|
||||
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
umami:
|
||||
image: ghcr.io/umami-software/umami:postgresql-v2.12.1
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:3000
|
||||
env_file:
|
||||
- /etc/1panel/envs/global.env
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
environment:
|
||||
- DISABLE_TELEMETRY = 1
|
||||
- REMOVE_TRAILING_SLASH = 1
|
||||
- DATABASE_TYPE=postgresql
|
||||
- DATABASE_URL=postgresql://${DB_USERNAME}:${DB_PASSWORD}@${DB_HOSTNAME}:${DB_PORT}/${DB_DATABASE_NAME}
|
15
apps/umami-pg/2.12.1/scripts/init.sh
Normal file
15
apps/umami-pg/2.12.1/scripts/init.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
10
apps/umami-pg/2.12.1/scripts/uninstall.sh
Normal file
10
apps/umami-pg/2.12.1/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
|
15
apps/umami-pg/2.12.1/scripts/upgrade.sh
Normal file
15
apps/umami-pg/2.12.1/scripts/upgrade.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
# setup-1 add default values
|
||||
CURRENT_DIR=$(pwd)
|
||||
sed -i '/^ENV_FILE=/d' .env
|
||||
echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
39
apps/umami-pg/README.md
Normal file
39
apps/umami-pg/README.md
Normal file
@ -0,0 +1,39 @@
|
||||
# Umami PostgreSQL版
|
||||
|
||||
为速度和效率而构建的网站分析
|
||||
|
||||
Umami 网站分析提供您实时做出决策所需的数据。
|
||||
|
||||
![Umami](https://file.lifebus.top/imgs/umami_cover.jpg)
|
||||
|
||||
## 简介
|
||||
|
||||
Umami 让您轻松分析数据
|
||||
|
||||
+ 便于使用
|
||||
|
||||
Umami 功能强大而简单,易于使用和理解,不需要复杂的设置或标签配置。
|
||||
|
||||
+ UTM 和自定义事件
|
||||
|
||||
Umami 会自动理解带有 UTM 参数的链接,并让您根据 UTM 查看和过滤您的网站数据。此外,您还可以跟踪网站上的任何事件,例如按钮点击、表单提交、购买、新闻通讯注册等。
|
||||
|
||||
+ 没有 Cookie 横幅
|
||||
|
||||
所有数据均经过 Umami 匿名处理,并且不会收集您网站用户的任何个人信息。您无需选择加入 Cookie
|
||||
横幅即可跟踪网站的性能,从而为您的用户提供更好、更值得信赖的体验。
|
||||
默认情况下,Umami 符合 GDPRP 和 CCPA。
|
||||
|
||||
## 环境准备
|
||||
|
||||
+ 数据库支持
|
||||
+ `MySQL` 版本:`5.7+`
|
||||
+ `PostgreSQL` 版本:`12.14+`
|
||||
|
||||
## 安装说明
|
||||
|
||||
> 默认管理员帐户
|
||||
>
|
||||
> 用户名: admin
|
||||
>
|
||||
> 密码: umami
|
20
apps/umami-pg/data.yml
Normal file
20
apps/umami-pg/data.yml
Normal file
@ -0,0 +1,20 @@
|
||||
name: Umami PostgreSQL版
|
||||
title: 为速度和效率而构建的网站分析
|
||||
description: 为速度和效率而构建的网站分析
|
||||
additionalProperties:
|
||||
key: umami-pg
|
||||
name: Umami PostgreSQL版
|
||||
tags:
|
||||
- WebSite
|
||||
- Database
|
||||
- Middleware
|
||||
- Runtime
|
||||
- Local
|
||||
shortDescZh: 为速度和效率而构建的网站分析
|
||||
shortDescEn: A website analytics tool that is built for speed and efficiency
|
||||
type: website
|
||||
crossVersionUpdate: true
|
||||
limit: 0
|
||||
website: https://umami.is/
|
||||
github: https://github.com/umami-software/umami/
|
||||
document: https://umami.is/docs/
|
BIN
apps/umami-pg/logo.png
Normal file
BIN
apps/umami-pg/logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.2 KiB |
Loading…
Reference in New Issue
Block a user