mirror of
https://github.com/arch3rPro/1Panel-Appstore.git
synced 2026-04-15 00:17:12 +08:00
feat: update git-sync 0.20.0
This commit is contained in:
@@ -776,7 +776,7 @@ AI驱动的开源代码知识库与文档协作平台,支持多模型、多数
|
|||||||
|
|
||||||
🔄 多平台Git仓库自动同步与备份工具,支持定时任务和Docker部署
|
🔄 多平台Git仓库自动同步与备份工具,支持定时任务和Docker部署
|
||||||
|
|
||||||
<kbd>latest</kbd> • [官网链接](https://github.com/AkashRajpurohit/git-sync)
|
<kbd>0.20.0</kbd> • [官网链接](https://github.com/AkashRajpurohit/git-sync)
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
41
apps/git-sync/0.20.0/config.yaml
Normal file
41
apps/git-sync/0.20.0/config.yaml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
# Git Sync Configuration
|
||||||
|
|
||||||
|
# Repository settings
|
||||||
|
include_forks: false # Include forked repositories
|
||||||
|
include_wiki: true # Include wiki's
|
||||||
|
include_repos: [] # Include specific repositories
|
||||||
|
exclude_repos: [] # Exclude specific repositories
|
||||||
|
include_orgs: [] # Include repositories from specific organizations
|
||||||
|
exclude_orgs: [] # Exclude repositories from specific organizations
|
||||||
|
raw_git_urls: [] # Raw valid git URLs
|
||||||
|
|
||||||
|
# Authentication
|
||||||
|
username: <username>
|
||||||
|
tokens: [<token 1>]
|
||||||
|
|
||||||
|
# Server settings
|
||||||
|
backup_dir: /path/to/backup
|
||||||
|
clone_type: bare # Clone type: bare, shallow, mirror or full. Default: bare
|
||||||
|
cron: 0 0 * * * # run every 24 hours at 00:00
|
||||||
|
concurrency: 5
|
||||||
|
retry:
|
||||||
|
count: 3
|
||||||
|
delay: 10 # in seconds
|
||||||
|
platform: github
|
||||||
|
server:
|
||||||
|
domain: github.com
|
||||||
|
protocol: https
|
||||||
|
notification:
|
||||||
|
enabled: true
|
||||||
|
only_failures: false
|
||||||
|
ntfy:
|
||||||
|
topic: 'backup'
|
||||||
|
server: 'https://ntfy.sh' # Optional
|
||||||
|
username: 'akash' # Optional
|
||||||
|
password: 'password' # Optional
|
||||||
|
priority: 4 # Optional (1-5)
|
||||||
|
tags: ['backup'] # Optional
|
||||||
|
gotify:
|
||||||
|
url: 'http://localhost:2444'
|
||||||
|
app_token: 'your_app_token'
|
||||||
|
priority: 4 # Optional (1-5)
|
||||||
30
apps/git-sync/0.20.0/data.yml
Normal file
30
apps/git-sync/0.20.0/data.yml
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
additionalProperties:
|
||||||
|
formFields:
|
||||||
|
- default: ./config.yaml
|
||||||
|
edit: true
|
||||||
|
envKey: GITSYNC_CONFIG_PATH
|
||||||
|
labelEn: Config Path
|
||||||
|
labelZh: 配置文件路径
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: ./backups
|
||||||
|
edit: true
|
||||||
|
envKey: GITSYNC_BACKUP_PATH
|
||||||
|
labelEn: Backup Path
|
||||||
|
labelZh: 备份目录
|
||||||
|
required: true
|
||||||
|
type: text
|
||||||
|
- default: 1000
|
||||||
|
edit: true
|
||||||
|
envKey: PUID
|
||||||
|
labelEn: PUID
|
||||||
|
labelZh: 用户ID(PUID)
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
|
- default: 1000
|
||||||
|
edit: true
|
||||||
|
envKey: PGID
|
||||||
|
labelEn: PGID
|
||||||
|
labelZh: 用户组ID(PGID)
|
||||||
|
required: true
|
||||||
|
type: number
|
||||||
12
apps/git-sync/0.20.0/docker-compose.yml
Normal file
12
apps/git-sync/0.20.0/docker-compose.yml
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
services:
|
||||||
|
git-sync:
|
||||||
|
image: ghcr.io/akashrajpurohit/git-sync:v0.20.0
|
||||||
|
container_name: git-sync
|
||||||
|
environment:
|
||||||
|
- PUID=${PUID}
|
||||||
|
- PGID=${PGID}
|
||||||
|
volumes:
|
||||||
|
- ${GITSYNC_CONFIG_PATH}:/git-sync/config.yaml
|
||||||
|
- ${GITSYNC_BACKUP_PATH}:/backups
|
||||||
|
restart: unless-stopped
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
git-sync:
|
git-sync:
|
||||||
image: akashrajpuroh1t/git-sync:latest
|
image: ghcr.io/akashrajpurohit/git-sync:latest
|
||||||
container_name: git-sync
|
container_name: git-sync
|
||||||
environment:
|
environment:
|
||||||
- PUID=${PUID}
|
- PUID=${PUID}
|
||||||
|
|||||||
Reference in New Issue
Block a user