feat:修正icat_lite

This commit is contained in:
okxlin 2024-06-30 23:35:27 +08:00
parent da32307cca
commit ab66bd5350
9 changed files with 193 additions and 101 deletions

View File

@ -0,0 +1,10 @@
CONTAINER_NAME="icat_lite"
ICAT_COOKIEPWD="fibowrlnidazotocrichechotechovad"
ICAT_PWDKEY="nevovltregopezeminatisejlbojudos"
PANEL_APP_PORT_HTTP=8095
PANEL_DB_HOST="postgresql"
PANEL_DB_HOST_NAME="postgresql"
PANEL_DB_NAME="icat_lite"
PANEL_DB_PORT=5432
PANEL_DB_USER="icat_lite"
PANEL_DB_USER_PASSWORD="icat_bbs"

View File

@ -1,82 +1,65 @@
additionalProperties: #固定参数 additionalProperties:
formFields: formFields:
- default: "" - default: ""
envKey: PANEL_DB_HOST #docker-compose 文件中的参数 edit: true
key: postgres #依赖应用的 key , 例如 mysql envKey: PANEL_DB_HOST
labelEn: Database Service #英文的label key: postgresql
labelZh: 数据库服务 #中文的label labelEn: Database Service
required: true #是否必填 labelZh: 数据库服务
type: service #如果需要依赖其他应用,例如数据库,使用此 type required: true
type: service
- default: 5432 - default: 5432
envKey: ICAT_DB_PORT envKey: PANEL_DB_PORT
labelEn: Database port labelEn: Database port
labelZh: 数据库端口 labelZh: 数据库端口
random: false #是否在 default 文字后面,增加随机字符串 random: false
required: true required: true
rule: paramPort rule: paramPort
type: number #端口使用此 type type: number
- default: icat_lite
envKey: PANEL_DB_NAME
- default: "" labelEn: Database
envKey: ICAT_DB_HOST labelZh: 数据库名
labelEn: Database host random: true
labelZh: 数据库连接主机(地址),在数据库信息里可以查询到 required: true
random: false #是否在 default 文字后面,增加随机字符串 rule: paramCommon
required: true type: text
rule: paramCommon - default: icat_lite
type: text envKey: PANEL_DB_USER
labelEn: User
- default: icat_lite labelZh: 数据库用户
envKey: PANEL_DB_NAME random: true
labelEn: Database required: true
labelZh: 数据库名 rule: paramCommon
random: true #是否在 default 文字后面,增加随机字符串 type: text
required: true - default: "icat_bbs"
rule: paramCommon #校验规则 envKey: PANEL_DB_USER_PASSWORD
type: text #需要手动填写的,使用此 type labelEn: Password
labelZh: 数据库用户密码
- default: icat_lite random: true
envKey: PANEL_DB_USER required: true
labelEn: User rule: paramComplexity
labelZh: 数据库用户 type: password
random: true - default: 8095
required: true edit: true
rule: paramCommon envKey: PANEL_APP_PORT_HTTP
type: text labelEn: Port
labelZh: 端口
- default: "icat_bbs" required: true
envKey: PANEL_DB_USER_PASSWORD rule: paramPort
labelEn: Password type: number
labelZh: 数据库用户密码 - default: "nevovltregopezeminatisejlbojudos"
random: true edit: true
required: true envKey: ICAT_PWDKEY
rule: paramComplexity labelEn: Key for encrypted password (lost and can't log in)
type: password #密码字段使用此 type labelZh: 用于加密的密码的密钥 (丢失无法登录)
random: true
- default: 8095 required: true
edit: true type: text
envKey: PANEL_APP_PORT_HTTP - default: "fibowrlnidazotocrichechotechovad"
labelEn: Port edit: true
labelZh: 端口 envKey: ICAT_COOKIEPWD
required: true labelEn: CookiePassword (at least 32 bits)
rule: paramPort labelZh: 登录状态加密密码 (至少32位)
type: number #端口使用此 type required: false
type: text
- default: "用于加密的密码的密钥,请务必替换成随机字符并重点保存,丢失将永久无法登录"
envKey: ICAT_PWDKEY
labelEn: PasswordKey
labelZh: 密钥(Key)
random: true
required: true
rule: paramCommon
type: text
- default: "这里是加密登录状态的密码随机字符至少32位这个不用保存每次可以不一样"
envKey: ICAT_COOKIEPWD
labelEn: CookiePassword
labelZh: 登录状态加密密码
random: true
required: true
rule: paramCommon
type: text

View File

@ -1,9 +1,8 @@
version: "3"
services: services:
icat_lite: icat_lite:
image: bluesdo/icat_lite_public:latest image: "bluesdo/icat_lite_public:1.1"
container_name: ${CONTAINER_NAME} container_name: ${CONTAINER_NAME}
restart: on-failure restart: always
networks: networks:
- 1panel-network - 1panel-network
volumes: volumes:
@ -14,7 +13,7 @@ services:
- ./icat_lite/certs:/icat_lite/certs - ./icat_lite/certs:/icat_lite/certs
ports: ports:
- ${PANEL_APP_PORT_HTTP}:8095 - ${PANEL_APP_PORT_HTTP}:8095
command: "serve.js --host 0.0.0.0 --port 8095 --dbHost ${ICAT_DB_HOST} --dbPort ${ICAT_DB_PORT} --dbName ${PANEL_DB_NAME} --dbUser ${PANEL_DB_USER} --dbPassword ${PANEL_DB_USER_PASSWORD} --pwdKey ${ICAT_PWDKEY} --cookiePwd ${ICAT_COOKIEPWD} --alterAll" command: "serve.js --host 0.0.0.0 --port 8095 --dbHost ${PANEL_DB_HOST} --dbPort ${PANEL_DB_PORT} --dbName ${PANEL_DB_NAME} --dbUser ${PANEL_DB_USER} --dbPassword ${PANEL_DB_USER_PASSWORD} --pwdKey ${ICAT_PWDKEY} --cookiePwd ${ICAT_COOKIEPWD} --alterAll"
labels: labels:
createdBy: "Apps" createdBy: "Apps"
networks: networks:

View File

@ -1,3 +1 @@
1. 上传并解压文件到1panel的目录/opt/1panel/resource/apps/local # 喵空间社区程序 Lite 版
2. 点击应用商店->更新应用列表->勾选显示本地应用->菜单选择【更多】-【本地】
3. 安装应用

View File

@ -1,13 +1,19 @@
name: icat_lite
tags:
- 建站
title: 喵空间社区程序 Lite 版
description: 喵空间社区程序 Lite 版
additionalProperties: additionalProperties:
key: icat_lite #应用的 key ,仅限英文,用于在 Linux 创建文件夹 key: icat_lite
name: 喵空间社区程序Lite版 #应用名称 name: icat_lite
tags: tags:
- 建站 #应用标签,可以有多个,请参照下方的标签列表 - WebSite
shortDescZh: 不太可爱(*╹▽╹*)的社区程序 #应用中文描述不要超过30个字 shortDescZh: 喵空间社区程序 Lite 版
shortDescEn: a mini bbs/forum/talk communicaty program. #应用英文描述 shortDescEn: A mini bbs/forum/talk communicaty program
type: website #应用类型,区别于应用分类,只能有一个,请参照下方的类型列表 type: website
crossVersionUpdate: true #是否可以跨大版本升级 crossVersionUpdate: true
limit: 0 #应用安装数量限制0 代表无限制 limit: 0
website: https://miao.o-o.zone #官网地址 recommend: 0
github: https://github.com/0ui0/icat_lite_public.git #github 地址 website: https://miao.o-o.zone
document: https://github.com/0ui0/icat_lite_public.git #文档地址 github: https://github.com/0ui0/icat_lite_public
document: https://github.com/0ui0/icat_lite_public

View File

@ -0,0 +1,10 @@
CONTAINER_NAME="icat_lite"
ICAT_COOKIEPWD="fibowrlnidazotocrichechotechovad"
ICAT_PWDKEY="nevovltregopezeminatisejlbojudos"
PANEL_APP_PORT_HTTP=8095
PANEL_DB_HOST="postgresql"
PANEL_DB_HOST_NAME="postgresql"
PANEL_DB_NAME="icat_lite"
PANEL_DB_PORT=5432
PANEL_DB_USER="icat_lite"
PANEL_DB_USER_PASSWORD="icat_bbs"

View File

@ -0,0 +1,65 @@
additionalProperties:
formFields:
- default: ""
edit: true
envKey: PANEL_DB_HOST
key: postgresql
labelEn: Database Service
labelZh: 数据库服务
required: true
type: service
- default: 5432
envKey: PANEL_DB_PORT
labelEn: Database port
labelZh: 数据库端口
random: false
required: true
rule: paramPort
type: number
- default: icat_lite
envKey: PANEL_DB_NAME
labelEn: Database
labelZh: 数据库名
random: true
required: true
rule: paramCommon
type: text
- default: icat_lite
envKey: PANEL_DB_USER
labelEn: User
labelZh: 数据库用户
random: true
required: true
rule: paramCommon
type: text
- default: "icat_bbs"
envKey: PANEL_DB_USER_PASSWORD
labelEn: Password
labelZh: 数据库用户密码
random: true
required: true
rule: paramComplexity
type: password
- default: 8095
edit: true
envKey: PANEL_APP_PORT_HTTP
labelEn: Port
labelZh: 端口
required: true
rule: paramPort
type: number
- default: "nevovltregopezeminatisejlbojudos"
edit: true
envKey: ICAT_PWDKEY
labelEn: Key for encrypted password (lost and can't log in)
labelZh: 用于加密的密码的密钥 (丢失无法登录)
random: true
required: true
type: text
- default: "fibowrlnidazotocrichechotechovad"
edit: true
envKey: ICAT_COOKIEPWD
labelEn: CookiePassword (at least 32 bits)
labelZh: 登录状态加密密码 (至少32位)
required: false
type: text

View File

@ -0,0 +1,21 @@
services:
icat_lite:
image: "bluesdo/icat_lite_public:latest"
container_name: ${CONTAINER_NAME}
restart: always
networks:
- 1panel-network
volumes:
- ./icat_lite/data:/icat_lite/www/data
- ./icat_lite/system:/icat_lite/www/public/statics/system
- ./icat_lite/systemBlock:/icat_lite/www/public/statics/systemBlock
- ./icat_lite/sticker:/icat_lite/www/public/statics/sticker
- ./icat_lite/certs:/icat_lite/certs
ports:
- ${PANEL_APP_PORT_HTTP}:8095
command: "serve.js --host 0.0.0.0 --port 8095 --dbHost ${PANEL_DB_HOST} --dbPort ${PANEL_DB_PORT} --dbName ${PANEL_DB_NAME} --dbUser ${PANEL_DB_USER} --dbPassword ${PANEL_DB_USER_PASSWORD} --pwdKey ${ICAT_PWDKEY} --cookiePwd ${ICAT_COOKIEPWD} --alterAll"
labels:
createdBy: "Apps"
networks:
1panel-network:
external: true

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB