diff --git a/apps/ntfy/2.11.0/.env.sample b/apps/ntfy/2.11.0/.env.sample new file mode 100644 index 00000000..a36385e5 --- /dev/null +++ b/apps/ntfy/2.11.0/.env.sample @@ -0,0 +1,6 @@ +CONTAINER_NAME="ntfy" +PANEL_APP_PORT_HTTP=40265 +APP_PORT_INTERNAL=80 +PGID=1000 +PUID=1000 +TIME_ZONE="Asia/Shanghai" diff --git a/apps/ntfy/2.11.0/data.yml b/apps/ntfy/2.11.0/data.yml new file mode 100644 index 00000000..5332a75f --- /dev/null +++ b/apps/ntfy/2.11.0/data.yml @@ -0,0 +1,39 @@ +additionalProperties: + formFields: + - default: "40265" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "80" + edit: true + envKey: APP_PORT_INTERNAL + labelEn: Internal Container Ports + labelZh: 容器内部端口 + required: true + rule: paramPort + type: number + - default: "Asia/Shanghai" + edit: true + envKey: TIME_ZONE + labelEn: Time Zone + labelZh: 时区 + required: true + type: text + - default: "1000" + edit: true + envKey: PUID + labelEn: User ID + labelZh: 用户 ID + required: true + type: number + - default: "1000" + edit: true + envKey: PGID + labelEn: Group ID + labelZh: 组 ID + required: true + type: number diff --git a/apps/ntfy/2.11.0/docker-compose.yml b/apps/ntfy/2.11.0/docker-compose.yml new file mode 100644 index 00000000..848a72e5 --- /dev/null +++ b/apps/ntfy/2.11.0/docker-compose.yml @@ -0,0 +1,29 @@ +services: + ntfy: + image: "binwiederhier/ntfy:v2.11.0" + container_name: ${CONTAINER_NAME} + command: + - serve + environment: + - TZ=${TIME_ZONE} + user: ${PUID}:${PGID} + volumes: + - ./data/cache/ntfy:/var/cache/ntfy + - ./data/ntfy:/etc/ntfy + ports: + - "${PANEL_APP_PORT_HTTP}:${APP_PORT_INTERNAL}" + restart: always + networks: + - 1panel-network + healthcheck: + test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:${APP_PORT_INTERNAL}/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"] + interval: 60s + timeout: 10s + retries: 3 + start_period: 40s + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/ntfy/README.md b/apps/ntfy/README.md new file mode 100644 index 00000000..d5a15155 --- /dev/null +++ b/apps/ntfy/README.md @@ -0,0 +1,23 @@ +![ntfy](https://github.com/binwiederhier/ntfy/raw/main/web/public/static/images/ntfy.png) + +# ntfy.sh +## Send push notifications to your phone or desktop via PUT/POST +[![Release](https://img.shields.io/github/release/binwiederhier/ntfy.svg?color=success&style=flat-square)](https://github.com/binwiederhier/ntfy/releases/latest) +[![Go Reference](https://pkg.go.dev/badge/heckel.io/ntfy.svg)](https://pkg.go.dev/heckel.io/ntfy/v2) +[![Tests](https://github.com/binwiederhier/ntfy/workflows/test/badge.svg)](https://github.com/binwiederhier/ntfy/actions) +[![Go Report Card](https://goreportcard.com/badge/github.com/binwiederhier/ntfy)](https://goreportcard.com/report/github.com/binwiederhier/ntfy) +[![codecov](https://codecov.io/gh/binwiederhier/ntfy/branch/main/graph/badge.svg?token=A597KQ463G)](https://codecov.io/gh/binwiederhier/ntfy) +[![Discord](https://img.shields.io/discord/874398661709295626?label=Discord)](https://discord.gg/cT7ECsZj9w) +[![Matrix](https://img.shields.io/matrix/ntfy:matrix.org?label=Matrix)](https://matrix.to/#/#ntfy:matrix.org) +[![Matrix space](https://img.shields.io/matrix/ntfy-space:matrix.org?label=Matrix+space)](https://matrix.to/#/#ntfy-space:matrix.org) +[![Healthcheck](https://healthchecks.io/badge/68b65976-b3b0-4102-aec9-980921/kcoEgrLY.svg)](https://ntfy.statuspage.io/) +[![Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod)](https://gitpod.io/#https://github.com/binwiederhier/ntfy) + +**ntfy** (pronounced "*notify*") is a simple HTTP-based [pub-sub](https://en.wikipedia.org/wiki/Publish%E2%80%93subscribe_pattern) +notification service. With ntfy, you can **send notifications to your phone or desktop via scripts** from any computer, +**without having to sign up or pay any fees**. If you'd like to run your own instance of the service, you can easily do +so since ntfy is open source. + +You can access the free version of ntfy at **[ntfy.sh](https://ntfy.sh)**. There is also an [open-source Android app](https://github.com/binwiederhier/ntfy-android) +available on [Google Play](https://play.google.com/store/apps/details?id=io.heckel.ntfy) or [F-Droid](https://f-droid.org/en/packages/io.heckel.ntfy/), +as well as an [open source iOS app](https://github.com/binwiederhier/ntfy-ios) available on the [App Store](https://apps.apple.com/us/app/ntfy/id1625396347). diff --git a/apps/ntfy/data.yml b/apps/ntfy/data.yml new file mode 100644 index 00000000..84aeb5c1 --- /dev/null +++ b/apps/ntfy/data.yml @@ -0,0 +1,19 @@ +name: ntfy +tags: + - 开发工具 +title: 基于 HTTP 的简单 pub-sub 通知服务 +description: 基于 HTTP 的简单 pub-sub 通知服务 +additionalProperties: + key: ntfy + name: ntfy + tags: + - DevTool + shortDescZh: 基于 HTTP 的简单 pub-sub 通知服务 + shortDescEn: A simple HTTP-based pub-sub notification service + type: tool + crossVersionUpdate: true + limit: 0 + recommend: 0 + website: https://ntfy.sh/ + github: https://github.com/binwiederhier/ntfy + document: https://ntfy.sh/docs diff --git a/apps/ntfy/latest/.env.sample b/apps/ntfy/latest/.env.sample new file mode 100644 index 00000000..a36385e5 --- /dev/null +++ b/apps/ntfy/latest/.env.sample @@ -0,0 +1,6 @@ +CONTAINER_NAME="ntfy" +PANEL_APP_PORT_HTTP=40265 +APP_PORT_INTERNAL=80 +PGID=1000 +PUID=1000 +TIME_ZONE="Asia/Shanghai" diff --git a/apps/ntfy/latest/data.yml b/apps/ntfy/latest/data.yml new file mode 100644 index 00000000..5332a75f --- /dev/null +++ b/apps/ntfy/latest/data.yml @@ -0,0 +1,39 @@ +additionalProperties: + formFields: + - default: "40265" + edit: true + envKey: PANEL_APP_PORT_HTTP + labelEn: Port + labelZh: 端口 + required: true + rule: paramPort + type: number + - default: "80" + edit: true + envKey: APP_PORT_INTERNAL + labelEn: Internal Container Ports + labelZh: 容器内部端口 + required: true + rule: paramPort + type: number + - default: "Asia/Shanghai" + edit: true + envKey: TIME_ZONE + labelEn: Time Zone + labelZh: 时区 + required: true + type: text + - default: "1000" + edit: true + envKey: PUID + labelEn: User ID + labelZh: 用户 ID + required: true + type: number + - default: "1000" + edit: true + envKey: PGID + labelEn: Group ID + labelZh: 组 ID + required: true + type: number diff --git a/apps/ntfy/latest/docker-compose.yml b/apps/ntfy/latest/docker-compose.yml new file mode 100644 index 00000000..1106017d --- /dev/null +++ b/apps/ntfy/latest/docker-compose.yml @@ -0,0 +1,29 @@ +services: + ntfy: + image: "binwiederhier/ntfy:latest" + container_name: ${CONTAINER_NAME} + command: + - serve + environment: + - TZ=${TIME_ZONE} + user: ${PUID}:${PGID} + volumes: + - ./data/cache/ntfy:/var/cache/ntfy + - ./data/ntfy:/etc/ntfy + ports: + - "${PANEL_APP_PORT_HTTP}:${APP_PORT_INTERNAL}" + restart: always + networks: + - 1panel-network + healthcheck: + test: ["CMD-SHELL", "wget -q --tries=1 http://localhost:${APP_PORT_INTERNAL}/v1/health -O - | grep -Eo '\"healthy\"\\s*:\\s*true' || exit 1"] + interval: 60s + timeout: 10s + retries: 3 + start_period: 40s + labels: + createdBy: "Apps" + +networks: + 1panel-network: + external: true diff --git a/apps/ntfy/logo.png b/apps/ntfy/logo.png new file mode 100644 index 00000000..cf4c9c3b Binary files /dev/null and b/apps/ntfy/logo.png differ