Skip to content

feat(notifications): add Gotify, unified notify script, MQTT config (#13 $80)#357

Open
achievefibromyalgia-lgtm wants to merge 3 commits intoillbnm:masterfrom
achievefibromyalgia-lgtm:feature/notifications-stack-13
Open

feat(notifications): add Gotify, unified notify script, MQTT config (#13 $80)#357
achievefibromyalgia-lgtm wants to merge 3 commits intoillbnm:masterfrom
achievefibromyalgia-lgtm:feature/notifications-stack-13

Conversation

@achievefibromyalgia-lgtm
Copy link
Copy Markdown

实现 Notifications Stack(通知服务栈)

服务清单

服务 镜像版本 说明
Gotify gotify/server:2.5.0 备用通知网关(WebSocket,Gotify plugins)
ntfy binwiederhier/ntfy:v2.11.0 推送通知服务(MQTT bridge)
Apprise caronc/apprise:v1.1.6 多平台通知聚合

变更内容

1. stacks/notifications/docker-compose.yml

  • 添加 Gotify 服务,配置 Traefik 反代 + SSO 中间件
  • 添加 ntfy config 挂载(config/ntfy/server.yml)
  • Traefik 路由:gotify.DOMAIN, ntfy.DOMAIN, apprise.DOMAIN

2. config/ntfy/server.yml(新增)

  • base-url 配置(Traefik URL)
  • MQTT bridge 启用配置
  • attachment 缓存设置(15M,24h过期)
  • 可选访问令牌认证

3. scripts/notify.sh(新增)

统一通知脚本,支持 ntfy、Gotify 双通道发送:

./notify.sh priority title message [tags]
./notify.sh high "ALERT" "Disk full" "warning,server"

4. stacks/notifications/README.md(新增)

完整集成文档:

  • Traefik/Alertmanager/Gitea/Watchtower/Home Assistant 集成示例
  • ntfy MQTT bridge 配置
  • Gotify token 获取教程
  • notify.sh 使用说明

安全配置

  • Gotify 启用 SSO 中间件(authentik@file)
  • ntfy 可选令牌认证(NTFY_TOKEN)
  • Traefik 安全头中间件

赏金认领

#13

…llbnm#13 $80)

## Changes
- Add Gotify service with Traefik + SSO (gotify.${DOMAIN})
- Add unified notify.sh script (ntfy + Gotify multi-channel)
- Add ntfy server.yml (MQTT bridge, base-url, attachment settings)
- Add stacks/notifications/README.md with integration examples

## Services
- Gotify 2.5.0 (notification gateway, WebSocket support)
- ntfy v2.11.0 (push notifications, MQTT bridge)
- Apprise v1.1.6 (multi-platform aggregator)
@zhuzhushiwojia
Copy link
Copy Markdown

Claim! 我认领这个 Bounty!我有相关经验,可以完成。钱包地址:TMLkvEDrjvHEUbWYU1jfqyUKmbLNZkx6T1 (USDT TRC20)

Achieve07 Bot added 2 commits March 27, 2026 10:52
- Fix send_gotify(): use actual HTTP status code check instead of always return 0
- Fix ntfy server.yml: remove broken ${DOMAIN} reference, use NTFY_SERVER_BASE_URL
  env var override instead (docker-compose interpolates env vars)
- Add NTFY_SERVER_BASE_URL env var to ntfy service in docker-compose
- Add clear comments in server.yml about base-url configuration
@achievefibromyalgia-lgtm
Copy link
Copy Markdown
Author

Status Update — All requested fixes have been committed:

Ready for review.

@zhuzhushiwojia
Copy link
Copy Markdown

🦞 Bounty Claim - Notifications Stack

Developer: 大眼 (bigeye)
Wallet: TMLkvEDrjvHEUbWYU1jfqyUKmbLNZkx6T1 (USDT TRC20)

Claim: I claim this $80 Notifications Stack bounty! I have experience with notification systems and MQTT configuration.

Ready to start immediately! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants