commit 87c8a69636d0ed8de2c5fb8d497cb3aecf341c62 Author: zhongkunming <73384930+zhongkunming@users.noreply.github.com> Date: Sat May 24 11:55:45 2025 +0800 feat(localApps): 添加 Syncthing 应用 - 新增 Syncthing 1.29.5 和 latest 版本的配置文件 - 添加 Syncthing应用的基本信息、端口配置和 Docker Compose 配置 - 包含 Syncthing 的 README 文件 diff --git a/syncthing/1.29.5/data.yml b/syncthing/1.29.5/data.yml new file mode 100644 index 000000000..2d922eeb8 --- /dev/null +++ b/syncthing/1.29.5/data.yml @@ -0,0 +1,28 @@ +additionalProperties: + formFields: + - default: "8384" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + + - default: "22000" + edit: true + envKey: PANEL_APP_PORT_SYNC + labelZh: 同步端口 + labelEn: Sync Port + required: true + rule: paramPort + type: number + + - default: "21027" + edit: true + envKey: PANEL_APP_PORT_DISCOVERY + labelZh: 服务发现端口 + labelEn: Discovery Port + required: true + rule: paramPort + type: number \ No newline at end of file diff --git a/syncthing/1.29.5/docker-compose.yml b/syncthing/1.29.5/docker-compose.yml new file mode 100644 index 000000000..5255f9a6e --- /dev/null +++ b/syncthing/1.29.5/docker-compose.yml @@ -0,0 +1,26 @@ +networks: + 1panel-network: + external: true + +services: + syncthing: + container_name: ${CONTAINER_NAME} + environment: + - PUID=0 + - PGID=0 + - TZ=Asia/Shanghai + - HOME=/data + image: linuxserver/syncthing:1.29.5 + labels: + createdBy: "Apps" + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8384 + - ${PANEL_APP_PORT_SYNC}:22000/tcp + - ${PANEL_APP_PORT_SYNC}:22000/udp + - ${PANEL_APP_PORT_DISCOVERY}:21027/udp + restart: always + volumes: + - ./data/config:/config + - ./data/data:/data diff --git a/syncthing/README.md b/syncthing/README.md new file mode 100644 index 000000000..6cf9fc2db --- /dev/null +++ b/syncthing/README.md @@ -0,0 +1,114 @@ +[![Syncthing][14]][15] + +--- + +[![MPLv2 License](https://img.shields.io/badge/license-MPLv2-blue.svg?style=flat-square)](https://www.mozilla.org/MPL/2.0/) +[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/88/badge)](https://bestpractices.coreinfrastructure.org/projects/88) +[![Go Report Card](https://goreportcard.com/badge/github.com/syncthing/syncthing)](https://goreportcard.com/report/github.com/syncthing/syncthing) + +## Goals + +Syncthing is a **continuous file synchronization program**. It synchronizes +files between two or more computers. We strive to fulfill the goals below. +The goals are listed in order of importance, the most important one being +the first. This is the summary version of the goal list - for more +commentary, see the full [Goals document][13]. + +Syncthing should be: + +1. **Safe From Data Loss** + + Protecting the user's data is paramount. We take every reasonable + precaution to avoid corrupting the user's files. + +2. **Secure Against Attackers** + + Again, protecting the user's data is paramount. Regardless of our other + goals we must never allow the user's data to be susceptible to + eavesdropping or modification by unauthorized parties. + +3. **Easy to Use** + + Syncthing should be approachable, understandable and inclusive. + +4. **Automatic** + + User interaction should be required only when absolutely necessary. + +5. **Universally Available** + + Syncthing should run on every common computer. We are mindful that the + latest technology is not always available to any given individual. + +6. **For Individuals** + + Syncthing is primarily about empowering the individual user with safe, + secure and easy to use file synchronization. + +7. **Everything Else** + + There are many things we care about that don't make it on to the list. It + is fine to optimize for these values, as long as they are not in conflict + with the stated goals above. + +## Getting Started + +Take a look at the [getting started guide][2]. + +There are a few examples for keeping Syncthing running in the background +on your system in [the etc directory][3]. There are also several [GUI +implementations][11] for Windows, Mac and Linux. + +## Docker + +To run Syncthing in Docker, see [the Docker README][16]. + +## Vote on features/bugs + +We'd like to encourage you to [vote][12] on issues that matter to you. +This helps the team understand what are the biggest pain points for our users, and could potentially influence what is being worked on next. + +## Getting in Touch + +The first and best point of contact is the [Forum][8]. +If you've found something that is clearly a +bug, feel free to report it in the [GitHub issue tracker][10]. + +## Building + +Building Syncthing from source is easy. After extracting the source bundle from +a release or checking out git, you just need to run `go run build.go` and the +binaries are created in `./bin`. There's [a guide][5] with more details on the +build process. + +## Signed Releases + +As of v0.10.15 and onwards release binaries are GPG signed with the key +D26E6ED000654A3E, available from https://syncthing.net/security.html and +most key servers. + +There is also a built in automatic upgrade mechanism (disabled in some +distribution channels) which uses a compiled in ECDSA signature. macOS +binaries are also properly code signed. + +## Documentation + +Please see the Syncthing [documentation site][6] [[source]][17]. + +All code is licensed under the [MPLv2 License][7]. + +[1]: https://docs.syncthing.net/specs/bep-v1.html +[2]: https://docs.syncthing.net/intro/getting-started.html +[3]: https://github.com/syncthing/syncthing/blob/main/etc +[5]: https://docs.syncthing.net/dev/building.html +[6]: https://docs.syncthing.net/ +[7]: https://github.com/syncthing/syncthing/blob/main/LICENSE +[8]: https://forum.syncthing.net/ +[10]: https://github.com/syncthing/syncthing/issues +[11]: https://docs.syncthing.net/users/contrib.html#gui-wrappers +[12]: https://www.bountysource.com/teams/syncthing/issues +[13]: https://github.com/syncthing/syncthing/blob/main/GOALS.md +[14]: https://github.com/syncthing/syncthing/raw/main/assets/logo-text-128.png +[15]: https://syncthing.net/ +[16]: https://github.com/syncthing/syncthing/blob/main/README-Docker.md +[17]: https://github.com/syncthing/docs diff --git a/syncthing/data.yml b/syncthing/data.yml new file mode 100644 index 000000000..321a6c169 --- /dev/null +++ b/syncthing/data.yml @@ -0,0 +1,19 @@ +name: Syncthing +tags: + - 工具 +title: 开源的文件同步客户端与服务器软件 +description: 开源的文件同步客户端与服务器软件,采用Go语言编写。它可以在本地网络上的设备之间或通过Internet在远程设备之间同步文件,使用了其独有的对等自由块交换协议 +additionalProperties: + key: syncthing + name: Syncthing + tags: + - Tool + shortDescZh: 开源的文件同步客户端与服务器软件 + shortDescEn: Open source file synchronization client and server software + type: tool + crossVersionUpdate: true + limit: 1 + recommend: 0 + website: https://syncthing.net + github: https://github.com/syncthing/syncthing + document: https://docs.syncthing.net diff --git a/syncthing/latest/data.yml b/syncthing/latest/data.yml new file mode 100644 index 000000000..2d922eeb8 --- /dev/null +++ b/syncthing/latest/data.yml @@ -0,0 +1,28 @@ +additionalProperties: + formFields: + - default: "8384" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + + - default: "22000" + edit: true + envKey: PANEL_APP_PORT_SYNC + labelZh: 同步端口 + labelEn: Sync Port + required: true + rule: paramPort + type: number + + - default: "21027" + edit: true + envKey: PANEL_APP_PORT_DISCOVERY + labelZh: 服务发现端口 + labelEn: Discovery Port + required: true + rule: paramPort + type: number \ No newline at end of file diff --git a/syncthing/latest/docker-compose.yml b/syncthing/latest/docker-compose.yml new file mode 100644 index 000000000..251fa8664 --- /dev/null +++ b/syncthing/latest/docker-compose.yml @@ -0,0 +1,26 @@ +networks: + 1panel-network: + external: true + +services: + syncthing: + container_name: ${CONTAINER_NAME} + environment: + - PUID=0 + - PGID=0 + - TZ=Asia/Shanghai + - HOME=/data + image: linuxserver/syncthing:latest + labels: + createdBy: "Apps" + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:8384 + - ${PANEL_APP_PORT_SYNC}:22000/tcp + - ${PANEL_APP_PORT_SYNC}:22000/udp + - ${PANEL_APP_PORT_DISCOVERY}:21027/udp + restart: always + volumes: + - ./data/config:/config + - ./data/data:/data diff --git a/syncthing/logo.png b/syncthing/logo.png new file mode 100644 index 000000000..d2526bb6b Binary files /dev/null and b/syncthing/logo.png differ