Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

ntfy: push notifications from your own server to your phone

说明与用途

在 VPS 上搭建私有 ntfy 服务器,使用 Traefik 配置 HTTPS 与身份验证,订阅主题后通过 curl 发送通知,手机端 ntfy 应用即可即时收到推送。

问题

Receive real‑time alerts (e.g., backup failures, disk space warnings, SSH logins) on a phone without relying on third‑party push services.

结果

A lightweight, self‑hosted push notification system that delivers instant alerts to phone apps or browsers, keeping all data on the private server and eliminating third‑party dependencies.

工作流

  • 1. Create project directory /opt/ntfy and write compose.yaml with ntfy image, environment variables, Traefik labels, and volumes.
  • 2. Run docker compose up -d and verify container status with docker compose ps and health endpoint curl https://ntfy.YOUR_DOMAIN/v1/health.
  • 3. Create an admin user with docker exec -it ntfy ntfy user add --role=admin admin and set a password.
  • 4. Log into the web client at https://ntfy.YOUR_DOMAIN, subscribe to a topic (e.g., serverkueche-alerts).
  • 5. Configure the ntfy app on phone (Settings → Default server) and add the same topic.
  • 6. Send a test message with curl -u admin:YOUR_PASSWORD -d "Backup completed" https://ntfy.YOUR_DOMAIN/serverkueche-alerts.

证据

ntfy is extremely lightweight (runs easily on the smallest VPS) and the data stays with you.

来源

Because we set deny-all, you need at least one user.

来源

Send a message via curl. Because the server is private, you supply your credentials (-u USER:PASSWORD).

来源

  • 记录日期: 2026-09-22T19:15:49.111Z