mirror of
https://github.com/QYG2297248353/appstore-1panel.git
synced 2026-06-16 01:02:14 +08:00
Update app version [skip ci]
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
additionalProperties:
|
||||
formFields:
|
||||
- default: "/home/opengist"
|
||||
edit: true
|
||||
envKey: OPENGIST_ROOT_PATH
|
||||
labelZh: 数据持久化路径
|
||||
labelEn: Data persistence path
|
||||
required: true
|
||||
type: text
|
||||
- default: 6157
|
||||
edit: true
|
||||
envKey: PANEL_APP_PORT_HTTP
|
||||
labelZh: WebUI 端口
|
||||
labelEn: WebUI port
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: OG_EXTERNAL_URL
|
||||
labelZh: 外部访问地址
|
||||
labelEn: External access URL
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: OG_GITHUB_CLIENT_KEY
|
||||
labelZh: GitHub 客户端密钥
|
||||
labelEn: GitHub Client Key
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: OG_GITHUB_SECRET
|
||||
labelZh: GitHub 密钥
|
||||
labelEn: GitHub Secret
|
||||
required: false
|
||||
type: text
|
||||
- default: "https://gitea.com/"
|
||||
edit: true
|
||||
envKey: OG_GITEA_URL
|
||||
labelZh: Gitea 地址
|
||||
labelEn: Gitea URL
|
||||
required: false
|
||||
type: text
|
||||
- default: "Gitea"
|
||||
edit: true
|
||||
envKey: OG_GITEA_NAME
|
||||
labelZh: Gitea 名称
|
||||
labelEn: Gitea Name
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: OG_GITEA_CLIENT_KEY
|
||||
labelZh: Gitea 客户端密钥
|
||||
labelEn: Gitea Client Key
|
||||
required: false
|
||||
type: text
|
||||
- default: ""
|
||||
edit: true
|
||||
envKey: OG_GITEA_SECRET
|
||||
labelZh: Gitea 密钥
|
||||
labelEn: Gitea Secret
|
||||
required: false
|
||||
type: text
|
||||
@@ -0,0 +1,32 @@
|
||||
networks:
|
||||
1panel-network:
|
||||
external: true
|
||||
|
||||
services:
|
||||
opengist:
|
||||
image: thomiceli/opengist:1.12.0
|
||||
container_name: ${CONTAINER_NAME}
|
||||
labels:
|
||||
createdBy: "Apps"
|
||||
restart: always
|
||||
networks:
|
||||
- 1panel-network
|
||||
ports:
|
||||
- ${PANEL_APP_PORT_HTTP}:6157
|
||||
env_file:
|
||||
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
|
||||
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
||||
volumes:
|
||||
- ${OPENGIST_ROOT_PATH}/.opengist:/opengist
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "curl -f http://localhost:6157/healthcheck"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
environment:
|
||||
- TZ=Asia/Shanghai
|
||||
- OG_SQLITE_JOURNAL_MODE=WAL
|
||||
- OG_HTTP_HOST=0.0.0.0
|
||||
- OG_HTTP_PORT=6157
|
||||
- OG_SSH_HOST=0.0.0.0
|
||||
- OG_SSH_PORT=2222
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
ENV_FILE=.env
|
||||
@@ -0,0 +1,2 @@
|
||||
# copyright© 2024 XinJiang Ms Studio
|
||||
TZ=Asia/Shanghai
|
||||
@@ -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
|
||||
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ -f .env ]; then
|
||||
source .env
|
||||
|
||||
echo "Check Finish."
|
||||
|
||||
else
|
||||
echo "Error: .env file not found."
|
||||
fi
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user