diff --git a/apps/blinko/0.2.2/.env.sample b/apps/blinko/0.2.2/.env.sample new file mode 100644 index 00000000..0780dc5f --- /dev/null +++ b/apps/blinko/0.2.2/.env.sample @@ -0,0 +1,11 @@ +CONTAINER_NAME="blinko" +NEXTAUTH_SECRET="my_ultra_secure_nextauth_secret" +NEXTAUTH_URL="http://1.2.3.4:1111" +NEXT_PUBLIC_BASE_URL="http://1.2.3.4:1111" +PANEL_APP_PORT_HTTP=1111 +PANEL_DB_HOST="postgresql" +PANEL_DB_HOST_NAME="postgresql" +PANEL_DB_NAME="blinko" +PANEL_DB_PORT=5432 +PANEL_DB_USER="blinko" +PANEL_DB_USER_PASSWORD="blinko" diff --git a/apps/blinko/0.2.2/data.yml b/apps/blinko/0.2.2/data.yml index ed608453..64ad4f09 100644 --- a/apps/blinko/0.2.2/data.yml +++ b/apps/blinko/0.2.2/data.yml @@ -7,24 +7,25 @@ additionalProperties: required: true rule: paramPort type: number - - default: "" + - default: "http://1.2.3.4:1111" envKey: NEXTAUTH_URL labelEn: NextAuth URL - labelZh: NextAuth URL + labelZh: 基本 URL required: true rule: paramExtUrl type: text - - default: "" + - default: "http://1.2.3.4:1111" envKey: NEXT_PUBLIC_BASE_URL labelEn: Next Public Base URL - labelZh: Next Public Base URL + labelZh: 公共基本 URL required: true rule: paramExtUrl type: text - - default: my_ultra_secure_nextauth_secret + - default: "my_ultra_secure_nextauth_secret" envKey: NEXTAUTH_SECRET labelEn: NextAuth Secret labelZh: NextAuth 密钥 + random: true required: true rule: paramComplexity type: password @@ -35,7 +36,15 @@ additionalProperties: labelZh: PostgreSQL 数据库服务 required: true type: service - - default: blinko + - default: "5432" + edit: true + envKey: PANEL_DB_PORT + labelEn: Database Port Number + labelZh: 数据库端口号 + required: true + rule: paramPort + type: number + - default: "blinko" envKey: PANEL_DB_NAME labelEn: Database labelZh: 数据库名 @@ -43,7 +52,7 @@ additionalProperties: required: true rule: paramCommon type: text - - default: blinko + - default: "blinko" envKey: PANEL_DB_USER labelEn: User labelZh: 数据库用户 @@ -51,7 +60,7 @@ additionalProperties: required: true rule: paramCommon type: text - - default: blinko + - default: "blinko" envKey: PANEL_DB_USER_PASSWORD labelEn: Password labelZh: 数据库用户密码 diff --git a/apps/blinko/0.2.2/docker-compose.yml b/apps/blinko/0.2.2/docker-compose.yml index 8139eda0..3eaaac2f 100644 --- a/apps/blinko/0.2.2/docker-compose.yml +++ b/apps/blinko/0.2.2/docker-compose.yml @@ -1,10 +1,10 @@ -networks: - 1panel-network: - external: true services: blinko: - image: blinkospace/blinko:0.2.2 + image: "blinkospace/blinko:0.2.2" container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network environment: NODE_ENV: production NEXTAUTH_URL: ${NEXTAUTH_URL} @@ -12,8 +12,7 @@ services: NEXTAUTH_SECRET: ${NEXTAUTH_SECRET} DATABASE_URL: postgresql://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME} volumes: - - ~/data:/app/.blinko - restart: always + - "./data:/app/.blinko" ports: - "${PANEL_APP_PORT_HTTP}:1111" healthcheck: @@ -22,5 +21,9 @@ services: timeout: 10s retries: 5 start_period: 30s - networks: - - 1panel-network + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true \ No newline at end of file diff --git a/apps/blinko/data.yml b/apps/blinko/data.yml index 43c7bb5c..c8abe351 100644 --- a/apps/blinko/data.yml +++ b/apps/blinko/data.yml @@ -1,14 +1,19 @@ +name: Blinko +tags: + - 实用工具 +title: 一款开源、自托管的个人笔记工具 +description: 一款开源、自托管的个人笔记工具 additionalProperties: - crossVersionUpdate: true - document: https://blinko-doc.vercel.app/intro.html - github: https://github.com/blinko-space/blinko - key: blinko - limit: 0 - name: Blinko - shortDescEn: Blinko is an open-source tool that helps users quickly capture and - organize fleeting ideas to ensure no creative spark is lost. - shortDescZh: Blinko 是一个创新的开源项目,快速捕捉和整理瞬间的灵感 - tags: - - Tool - type: tool - website: https://blinko-demo.vercel.app/ + key: blinko + name: Blinko + tags: + - Tool + shortDescZh: 一款开源、自托管的个人笔记工具 + shortDescEn: An open-source, self-hosted personal note tool + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://blinko-demo.vercel.app + github: https://github.com/blinko-space/blinko + document: https://blinko-doc.vercel.app/intro.html diff --git a/apps/blinko/latest/.env.sample b/apps/blinko/latest/.env.sample new file mode 100644 index 00000000..0780dc5f --- /dev/null +++ b/apps/blinko/latest/.env.sample @@ -0,0 +1,11 @@ +CONTAINER_NAME="blinko" +NEXTAUTH_SECRET="my_ultra_secure_nextauth_secret" +NEXTAUTH_URL="http://1.2.3.4:1111" +NEXT_PUBLIC_BASE_URL="http://1.2.3.4:1111" +PANEL_APP_PORT_HTTP=1111 +PANEL_DB_HOST="postgresql" +PANEL_DB_HOST_NAME="postgresql" +PANEL_DB_NAME="blinko" +PANEL_DB_PORT=5432 +PANEL_DB_USER="blinko" +PANEL_DB_USER_PASSWORD="blinko" diff --git a/apps/blinko/latest/data.yml b/apps/blinko/latest/data.yml new file mode 100644 index 00000000..64ad4f09 --- /dev/null +++ b/apps/blinko/latest/data.yml @@ -0,0 +1,70 @@ +additionalProperties: + formFields: + - default: "1111" + envKey: PANEL_APP_PORT_HTTP + labelEn: HTTP Port + labelZh: HTTP 端口 + required: true + rule: paramPort + type: number + - default: "http://1.2.3.4:1111" + envKey: NEXTAUTH_URL + labelEn: NextAuth URL + labelZh: 基本 URL + required: true + rule: paramExtUrl + type: text + - default: "http://1.2.3.4:1111" + envKey: NEXT_PUBLIC_BASE_URL + labelEn: Next Public Base URL + labelZh: 公共基本 URL + required: true + rule: paramExtUrl + type: text + - default: "my_ultra_secure_nextauth_secret" + envKey: NEXTAUTH_SECRET + labelEn: NextAuth Secret + labelZh: NextAuth 密钥 + random: true + required: true + rule: paramComplexity + type: password + - default: "" + envKey: PANEL_DB_HOST + key: postgresql + labelEn: PostgreSQL Database Service + labelZh: PostgreSQL 数据库服务 + required: true + type: service + - default: "5432" + edit: true + envKey: PANEL_DB_PORT + labelEn: Database Port Number + labelZh: 数据库端口号 + required: true + rule: paramPort + type: number + - default: "blinko" + envKey: PANEL_DB_NAME + labelEn: Database + labelZh: 数据库名 + random: true + required: true + rule: paramCommon + type: text + - default: "blinko" + envKey: PANEL_DB_USER + labelEn: User + labelZh: 数据库用户 + random: true + required: true + rule: paramCommon + type: text + - default: "blinko" + envKey: PANEL_DB_USER_PASSWORD + labelEn: Password + labelZh: 数据库用户密码 + random: true + required: true + rule: paramComplexity + type: password diff --git a/apps/blinko/latest/docker-compose.yml b/apps/blinko/latest/docker-compose.yml new file mode 100644 index 00000000..9a80297e --- /dev/null +++ b/apps/blinko/latest/docker-compose.yml @@ -0,0 +1,29 @@ +services: + blinko: + image: "blinkospace/blinko:latest" + container_name: ${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + environment: + NODE_ENV: production + NEXTAUTH_URL: ${NEXTAUTH_URL} + NEXT_PUBLIC_BASE_URL: ${NEXT_PUBLIC_BASE_URL} + NEXTAUTH_SECRET: ${NEXTAUTH_SECRET} + DATABASE_URL: postgresql://${PANEL_DB_USER}:${PANEL_DB_USER_PASSWORD}@${PANEL_DB_HOST}:${PANEL_DB_PORT}/${PANEL_DB_NAME} + volumes: + - "./data:/app/.blinko" + ports: + - "${PANEL_APP_PORT_HTTP}:1111" + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:1111/"] + interval: 30s + timeout: 10s + retries: 5 + start_period: 30s + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true \ No newline at end of file diff --git a/apps/blinko/logo.png b/apps/blinko/logo.png index 86cbc800..643f3cce 100644 Binary files a/apps/blinko/logo.png and b/apps/blinko/logo.png differ