diff --git a/appstore/fider/0.24.0/.env b/appstore/fider/0.24.0/.env new file mode 100644 index 00000000..3311f134 --- /dev/null +++ b/appstore/fider/0.24.0/.env @@ -0,0 +1,45 @@ +# Postgres 服务 (前置检查) [必填] +PANEL_POSTGRES_TYPE=postgresql + +# Web UI 端口 [必填] +PANEL_APP_PORT_HTTP=3000 + +# 访问地址 [必填] +BASE_URL=http://127.0.0.1:3000 + +# 应用密钥 [必填] +JWT_SECRET=adc19ed6361cb4af0ff5f5bd3c52930cc6b444777d07bdcb76c2e9d623976b648640c4fbdc00cea739f15ef21522240758d747f65c15c6311f7d8678d8fe1ae565b837cdd5eb9d90594a4501dea1e6711ca0eae873302de27f210219188f4420473749fb67103afe64867120d0f7fadaecd2442e96b165c5f1602e701527f2e72188a18d195127f59632247d578d2b9a9a652240026aa5a317c972e5bdb391caab81b2779eebe0a07e28246b78e58ddd49845cf91f29cbb8e9090b2cf0ce4db0f49d52473fd75f9c274dcb5a9cb3c0bf6dd664b2fb1b603955fef325fd0b34043524b0fad2fcd2686ce04225792e267800b9b66a1762d9ebae4416500541dc8d + +# 数据库 主机地址 [必填] +POSTGRES_HOST=127.0.0.1 + +# 数据库 端口 [必填] +POSTGRES_PORT=5432 + +# 数据库 名称 [必填] +POSTGRES_NAME=fider + +# 数据库 用户名 [必填] +POSTGRES_USER=fider + +# 数据库 密码 [必填] +POSTGRES_PASSWORD= + +# 邮件服务 地址 [必填] +EMAIL_SMTP_HOST= + +# 邮件服务 端口 [必填] +EMAIL_SMTP_PORT=465 + +# 邮件服务 用户名 [必填] +EMAIL_SMTP_USERNAME= + +# 邮件服务 密码 [必填] +EMAIL_SMTP_PASSWORD= + +# 邮件服务 发件人 [必填] +EMAIL_NOREPLY= + +# 邮件服务 启用 STARTTLS [必填] +EMAIL_SMTP_ENABLE_STARTTLS=true + diff --git a/appstore/fider/0.24.0/data.yml b/appstore/fider/0.24.0/data.yml new file mode 100644 index 00000000..dbca45ee --- /dev/null +++ b/appstore/fider/0.24.0/data.yml @@ -0,0 +1,125 @@ +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 + - default: 3000 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: Web UI 端口 + labelEn: Web UI Port + required: true + rule: paramPort + type: number + - default: "http://127.0.0.1:3000" + edit: true + envKey: BASE_URL + labelZh: 访问地址 + labelEn: Access URL + required: true + type: text + - default: "adc19ed6361cb4af0ff5f5bd3c52930cc6b444777d07bdcb76c2e9d623976b648640c4fbdc00cea739f15ef21522240758d747f65c15c6311f7d8678d8fe1ae565b837cdd5eb9d90594a4501dea1e6711ca0eae873302de27f210219188f4420473749fb67103afe64867120d0f7fadaecd2442e96b165c5f1602e701527f2e72188a18d195127f59632247d578d2b9a9a652240026aa5a317c972e5bdb391caab81b2779eebe0a07e28246b78e58ddd49845cf91f29cbb8e9090b2cf0ce4db0f49d52473fd75f9c274dcb5a9cb3c0bf6dd664b2fb1b603955fef325fd0b34043524b0fad2fcd2686ce04225792e267800b9b66a1762d9ebae4416500541dc8d" + edit: true + envKey: JWT_SECRET + labelZh: 应用密钥 + labelEn: App key + 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: "fider" + edit: true + envKey: POSTGRES_NAME + labelZh: 数据库 名称 + labelEn: Database Name + required: true + rule: paramCommon + type: text + - default: "fider" + 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: "" + edit: true + envKey: EMAIL_SMTP_HOST + labelZh: 邮件服务 地址 + labelEn: Mailer Server Address + required: true + type: text + - default: 465 + edit: true + envKey: EMAIL_SMTP_PORT + labelZh: 邮件服务 端口 + labelEn: Mailer Server Port + required: true + type: number + - default: "" + edit: true + envKey: EMAIL_SMTP_USERNAME + labelZh: 邮件服务 用户名 + labelEn: Mailer Username + required: true + type: text + - default: "" + edit: true + envKey: EMAIL_SMTP_PASSWORD + labelZh: 邮件服务 密码 + labelEn: Mailer Password + required: true + type: text + - default: "" + edit: true + envKey: EMAIL_NOREPLY + labelZh: 邮件服务 发件人 + labelEn: Mailer From + required: true + type: text + + - default: "true" + edit: true + envKey: EMAIL_SMTP_ENABLE_STARTTLS + labelZh: 邮件服务 启用 STARTTLS + labelEn: Mailer Enable STARTTLS + required: true + type: select + values: + - label: "是" + value: "true" + - label: "否" + value: "false" diff --git a/appstore/fider/0.24.0/docker-compose.yml b/appstore/fider/0.24.0/docker-compose.yml new file mode 100644 index 00000000..261fb387 --- /dev/null +++ b/appstore/fider/0.24.0/docker-compose.yml @@ -0,0 +1,19 @@ +networks: + 1panel-network: + external: true +services: + fider: + container_name: fider + env_file: + - ./envs/global.env + - .env + environment: + - DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_NAME}?sslmode=disable + image: getfider/fider:v0.24.0 + labels: + createdBy: Apps + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:3000 + restart: always diff --git a/appstore/fider/0.24.0/envs/default.env b/appstore/fider/0.24.0/envs/default.env new file mode 100644 index 00000000..cd05f46e --- /dev/null +++ b/appstore/fider/0.24.0/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/appstore/fider/0.24.0/envs/global.env b/appstore/fider/0.24.0/envs/global.env new file mode 100644 index 00000000..e10989fe --- /dev/null +++ b/appstore/fider/0.24.0/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/appstore/fider/0.24.0/scripts/init.sh b/appstore/fider/0.24.0/scripts/init.sh new file mode 100644 index 00000000..5e9dcca0 --- /dev/null +++ b/appstore/fider/0.24.0/scripts/init.sh @@ -0,0 +1,30 @@ +#!/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 + + DATA_DIR="$ARTALK_ROOT_PATH/data" + + mkdir -p "$DATA_DIR" + + OUTPUT_FILE="$DATA_DIR/ip2region.xdb" + + URL1="https://gh-proxy.com/?q=https%3A%2F%2Fgithub.com%2Flionsoul2014%2Fip2region%2Fblob%2Fmaster%2Fdata%2Fip2region.xdb" + URL2="https://github.com/lionsoul2014/ip2region/raw/master/data/ip2region.xdb" + + curl -L "$URL1" -o "$OUTPUT_FILE" || curl -L "$URL2" -o "$OUTPUT_FILE" + + chmod -R 777 "$DATA_DIR" + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/appstore/fider/0.24.0/scripts/uninstall.sh b/appstore/fider/0.24.0/scripts/uninstall.sh new file mode 100644 index 00000000..c86c4fbc --- /dev/null +++ b/appstore/fider/0.24.0/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/appstore/fider/0.24.0/scripts/upgrade.sh b/appstore/fider/0.24.0/scripts/upgrade.sh new file mode 100644 index 00000000..5e9dcca0 --- /dev/null +++ b/appstore/fider/0.24.0/scripts/upgrade.sh @@ -0,0 +1,30 @@ +#!/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 + + DATA_DIR="$ARTALK_ROOT_PATH/data" + + mkdir -p "$DATA_DIR" + + OUTPUT_FILE="$DATA_DIR/ip2region.xdb" + + URL1="https://gh-proxy.com/?q=https%3A%2F%2Fgithub.com%2Flionsoul2014%2Fip2region%2Fblob%2Fmaster%2Fdata%2Fip2region.xdb" + URL2="https://github.com/lionsoul2014/ip2region/raw/master/data/ip2region.xdb" + + curl -L "$URL1" -o "$OUTPUT_FILE" || curl -L "$URL2" -o "$OUTPUT_FILE" + + chmod -R 777 "$DATA_DIR" + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/appstore/fider/README.md b/appstore/fider/README.md new file mode 100644 index 00000000..f5dc7f94 --- /dev/null +++ b/appstore/fider/README.md @@ -0,0 +1,63 @@ +# Fider + +简单而优雅的功能投票工具 + +![Fider](https://file.lifebus.top/imgs/fider_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) + +## 特性 + ++ 分享想法,投票并讨论 + +为您的社区发声,获取宝贵的建议,优先考虑他们最需要的东西。 + ++ 保持每个人知情 + +每次您开始、完成或拒绝建议时,Fider 都会通知订阅该主题的每个人。 + ++ 一键登录 + +访客只需一键即可参与贡献!通过 Facebook、Google、GitHub、Azure AD、Twitch、Discord 或其他 OAuth2 提供者登录。 + ++ 私人网站 + +您可以选择通过将其设为私有来控制对您网站的访问。 + ++ 您的品牌 + +使用自定义 CSS 功能以您希望的方式设计 Fider。您的标志、您的颜色、您的身份。 + ++ 公共 API + +利用我们完整的 API,完全控制将 Fider 集成到您的流程中。 + ++ 集成 + +Fider 可以与支持 Webhook 的任何系统集成,例如 Slack 和 Discord。 + ++ 多语言 + +我们说你的语言!Fider 已翻译成 10 多种语言,例如英语、西班牙语、德语、法语和葡萄牙语! + ++ 整理您的内容 + +为您的内容添加标签,以便更容易查找、分组和决策。标签可以是公开的,也可以是私有的。 + ++ text Markdown 文本 + +使用流行的 Markdown 标记语言来格式化您的文本。 + ++ 您的域名 + +当使用我们的托管服务时,您可以使用自己的域名并获得免费的 TLS 证书以确保其安全。 + ++ 开源 + +Fider 是 100% 开源。 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/appstore/fider/data.yml b/appstore/fider/data.yml new file mode 100644 index 00000000..f72a3b72 --- /dev/null +++ b/appstore/fider/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: fider + name: Fider + tags: + - WebSite + - Local + shortDescZh: 简单而优雅的功能投票工具 + shortDescEn: The simple and elegant feature voting tool + type: website + crossVersionUpdate: true + limit: 0 + website: https://fider.io/ + github: https://github.com/getfider/fider/ + document: https://fider.io/docs/hosting-instance diff --git a/appstore/fider/logo.png b/appstore/fider/logo.png new file mode 100644 index 00000000..a85c08ef Binary files /dev/null and b/appstore/fider/logo.png differ diff --git a/dockge/fider/.env b/dockge/fider/.env new file mode 100644 index 00000000..3311f134 --- /dev/null +++ b/dockge/fider/.env @@ -0,0 +1,45 @@ +# Postgres 服务 (前置检查) [必填] +PANEL_POSTGRES_TYPE=postgresql + +# Web UI 端口 [必填] +PANEL_APP_PORT_HTTP=3000 + +# 访问地址 [必填] +BASE_URL=http://127.0.0.1:3000 + +# 应用密钥 [必填] +JWT_SECRET=adc19ed6361cb4af0ff5f5bd3c52930cc6b444777d07bdcb76c2e9d623976b648640c4fbdc00cea739f15ef21522240758d747f65c15c6311f7d8678d8fe1ae565b837cdd5eb9d90594a4501dea1e6711ca0eae873302de27f210219188f4420473749fb67103afe64867120d0f7fadaecd2442e96b165c5f1602e701527f2e72188a18d195127f59632247d578d2b9a9a652240026aa5a317c972e5bdb391caab81b2779eebe0a07e28246b78e58ddd49845cf91f29cbb8e9090b2cf0ce4db0f49d52473fd75f9c274dcb5a9cb3c0bf6dd664b2fb1b603955fef325fd0b34043524b0fad2fcd2686ce04225792e267800b9b66a1762d9ebae4416500541dc8d + +# 数据库 主机地址 [必填] +POSTGRES_HOST=127.0.0.1 + +# 数据库 端口 [必填] +POSTGRES_PORT=5432 + +# 数据库 名称 [必填] +POSTGRES_NAME=fider + +# 数据库 用户名 [必填] +POSTGRES_USER=fider + +# 数据库 密码 [必填] +POSTGRES_PASSWORD= + +# 邮件服务 地址 [必填] +EMAIL_SMTP_HOST= + +# 邮件服务 端口 [必填] +EMAIL_SMTP_PORT=465 + +# 邮件服务 用户名 [必填] +EMAIL_SMTP_USERNAME= + +# 邮件服务 密码 [必填] +EMAIL_SMTP_PASSWORD= + +# 邮件服务 发件人 [必填] +EMAIL_NOREPLY= + +# 邮件服务 启用 STARTTLS [必填] +EMAIL_SMTP_ENABLE_STARTTLS=true + diff --git a/dockge/fider/docker-compose.yml b/dockge/fider/docker-compose.yml new file mode 100644 index 00000000..261fb387 --- /dev/null +++ b/dockge/fider/docker-compose.yml @@ -0,0 +1,19 @@ +networks: + 1panel-network: + external: true +services: + fider: + container_name: fider + env_file: + - ./envs/global.env + - .env + environment: + - DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_NAME}?sslmode=disable + image: getfider/fider:v0.24.0 + labels: + createdBy: Apps + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:3000 + restart: always diff --git a/dockge/fider/envs/default.env b/dockge/fider/envs/default.env new file mode 100644 index 00000000..cd05f46e --- /dev/null +++ b/dockge/fider/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/dockge/fider/envs/global.env b/dockge/fider/envs/global.env new file mode 100644 index 00000000..e10989fe --- /dev/null +++ b/dockge/fider/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai