Synced apps from source repository via GitHub Actions

This commit is contained in:
QYG2297248353
2025-10-05 18:26:54 +00:00
parent f78e2db773
commit e108d6d580
44 changed files with 5 additions and 5 deletions
+60
View File
@@ -0,0 +1,60 @@
# Postgres 服务 (前置检查) [必填]
PANEL_POSTGRES_TYPE=postgresql
# 数据持久化路径 [必填]
LINKDING_ROOT_PATH=/home/linkding
# WebUI 端口 [必填]
PANEL_APP_PORT_HTTP=9090
# 管理员 用户名 [必填]
LD_SUPERUSER_NAME=
# 管理员 密码 [必填]
LD_SUPERUSER_PASSWORD=
# 禁用后台任务 [必填]
LD_DISABLE_BACKGROUND_TASKS=False
# 禁用 URL 验证 [必填]
LD_DISABLE_URL_VALIDATION=False
# 请求超时时间 (秒) [必填]
LD_REQUEST_TIMEOUT=60
# 网站路径
LD_CONTEXT_PATH=
# 记录真实 IP [必填]
LD_LOG_X_FORWARDED_FOR=false
# 网站图标提供商 [必填]
LD_FAVICON_PROVIDER=https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url={url}&size=32
# 数据库 主机 [必填]
LD_DB_HOST=localhost
# 数据库 端口 [必填]
LD_DB_PORT=5432
# 数据库 用户名 [必填]
LD_DB_USER=linkding
# 数据库 密码 [必填]
LD_DB_PASSWORD=
# 数据库名称 [必填]
LD_DB_DATABASE=linkding
# 数据库选项 (JSON) [必填]
LD_DB_OPTIONS={}
# CSRF 可信来源
LD_CSRF_TRUSTED_ORIGINS=
# 代理地址
ALL_PROXY=
# 代理白名单
NO_PROXY=localhost,127.0.0.1,::1
+168
View File
@@ -0,0 +1,168 @@
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: "/home/linkding"
edit: true
envKey: LINKDING_ROOT_PATH
labelZh: 数据持久化路径
labelEn: Data persistence path
required: true
type: text
- default: 9090
edit: true
envKey: PANEL_APP_PORT_HTTP
labelZh: WebUI 端口
labelEn: WebUI port
required: true
rule: paramPort
type: number
- default: ""
edit: true
envKey: LD_SUPERUSER_NAME
labelZh: 管理员 用户名
labelEn: Superuser name
required: true
type: text
- default: ""
edit: true
envKey: LD_SUPERUSER_PASSWORD
labelZh: 管理员 密码
labelEn: Superuser password
required: true
rule: paramComplexity
type: password
- default: "False"
edit: true
envKey: LD_DISABLE_BACKGROUND_TASKS
labelZh: 禁用后台任务
labelEn: Disable background tasks
required: true
type: select
values:
- label: 禁用
value: "False"
- label: 启用
value: "True"
- default: "False"
edit: true
envKey: LD_DISABLE_URL_VALIDATION
labelZh: 禁用 URL 验证
labelEn: Disable URL validation
required: true
type: select
values:
- label: 禁用
value: "False"
- label: 启用
value: "True"
- default: 60
edit: true
envKey: LD_REQUEST_TIMEOUT
labelZh: 请求超时时间 (秒)
labelEn: Request timeout (seconds)
required: true
type: number
- default: ""
edit: true
envKey: LD_CONTEXT_PATH
labelZh: 网站路径
labelEn: Context path
required: false
type: text
- default: "false"
edit: true
envKey: LD_LOG_X_FORWARDED_FOR
labelZh: 记录真实 IP
labelEn: Log real IP
required: true
type: select
values:
- label: 禁用
value: "false"
- label: 启用
value: "true"
- default: "https://t1.gstatic.com/faviconV2?client=SOCIAL&type=FAVICON&fallback_opts=TYPE,SIZE,URL&url={url}&size=32"
edit: true
envKey: LD_FAVICON_PROVIDER
labelZh: 网站图标提供商
labelEn: Favicon provider
required: true
type: text
- default: "localhost"
edit: true
envKey: LD_DB_HOST
labelZh: 数据库 主机
labelEn: Database Host
required: true
type: text
- default: 5432
edit: true
envKey: LD_DB_PORT
labelEn: Database Port
labelZh: 数据库 端口
required: true
rule: paramPort
type: number
- default: "linkding"
edit: true
envKey: LD_DB_USER
labelZh: 数据库 用户名
labelEn: Database User
required: true
type: text
- default: ""
edit: true
envKey: LD_DB_PASSWORD
labelZh: 数据库 密码
labelEn: Database Password
required: true
type: password
- default: "linkding"
edit: true
envKey: LD_DB_DATABASE
labelZh: 数据库名称
labelEn: Database Name
required: true
type: text
- default: "{}"
edit: true
envKey: LD_DB_OPTIONS
labelZh: 数据库选项 (JSON)
labelEn: Database Options (JSON)
required: true
type: text
- default: ""
edit: true
envKey: LD_CSRF_TRUSTED_ORIGINS
labelZh: CSRF 可信来源
labelEn: CSRF trusted origins
required: false
type: text
- default: ""
edit: true
envKey: ALL_PROXY
labelZh: 代理地址
labelEn: Proxy address
required: false
rule: paramExtUrl
type: text
- default: "localhost,127.0.0.1,::1"
edit: true
envKey: NO_PROXY
labelZh: 代理白名单
labelEn: Proxy whitelist
required: false
type: text
+29
View File
@@ -0,0 +1,29 @@
networks:
1panel-network:
external: true
services:
linkding:
container_name: linkding
env_file:
- ./envs/global.env
- .env
environment:
- LD_SERVER_PORT=9090
- LD_DB_ENGINE=postgres
- HTTP_PROXY=${ALL_PROXY}
- HTTPS_PROXY=${ALL_PROXY}
image: sissbruecker/linkding:1.44.0-plus
labels:
createdBy: Apps
networks:
- 1panel-network
ports:
- ${PANEL_APP_PORT_HTTP}:9090
restart: always
ulimits:
nofile:
hard: 40000
soft: 20000
nproc: 65535
volumes:
- ${LINKDING_ROOT_PATH}/data:/etc/linkding/data
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
ENV_FILE=.env
+2
View File
@@ -0,0 +1,2 @@
# copyright© 2024 XinJiang Ms Studio
TZ=Asia/Shanghai
+17
View 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
View 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
View 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