Ntfy

Ntfy

Docker 应用程序 from kostecki's Repository

概述

ntfy (pronounce: notify) is a simple HTTP-based pub-sub notification service. It allows you to send notifications to your phone or desktop via scripts from any computer, entirely without signup, cost or setup. It's also open source if you want to run your own. Publishing a message to a topic is as simple as: curl -d "Backup successful 😀" ntfy.sh/mytopic By default, the ntfy server is open for everyone, meaning everyone can read and write to any topic (this is how ntfy.sh is configured). To restrict access to your own server, you can optionally configure authentication and authorization using NTFY_AUTH_FILE and NTFY_AUTH_DEFAULT_ACCESS. After that, simply create an admin user: ntfy user add --role=admin phil password: mypass confirm: mypass user phil added with role admin Once you've done that, you can publish and subscribe using Basic Auth with the given username/password.

运行时参数

网络用户界面
http://[IP]:[PORT:80]/
网络
bridge
外壳
sh
特权
false
额外参数
--restart unless-stopped

模板配置

Host Port 1Porttcp
目标
80
价值
8080
NTFY_BASE_URLVariable
价值
https://ntfy.israndom.win
NTFY_WEB_ROOTVariable

Sets web root to landing page (home), web app (app) or disables the web app entirely (disable).

默认值
app
价值
app
NTFY_UPSTREAM_BASE_URLVariable

Forward poll request to an upstream server, this is needed for iOS push notifications for self-hosted servers.

默认值
https://ntfy.sh
价值
https://ntfy.sh
NTFY_CACHE_FILEVariable

If set, messages are cached in a local SQLite database instead of only in-memory. This allows for service restarts without losing messages in support of the since= parameter.

默认值
/config/cache.db
价值
/config/cache.db
NTFY_CACHE_DURATIONVariable

Duration for which messages will be buffered before they are deleted (e.g. 30s, 20m, 20h). This is required to support the since=... and poll=1 parameter. Set this to 0 to disable the cache entirely.

默认值
12h
价值
12h
NTFY_AUTH_FILEVariable

Auth database file used for access control. If set, enables authentication and access control.

默认值
/config/user.db
价值
/config/user.db
NTFY_AUTH_DEFAULT_ACCESSVariable

Default permissions if no matching entries in the auth database are found. Default is read-write.

默认值
read-write
价值
deny-all
NTFY_ATTACHMENT_CACHE_DIRVariable

Cache directory for attached files. To enable attachments, this has to be set. NOTE: If NTFY_ATTACHMENT_CACHE_DIR is set then NFTY_BASE_URL is also required.

默认值
/config/attachments
价值
/config/attachments
NTFY_ATTACHMENT_TOTAL_SIZE_LIMITVariable

Limit of the on-disk attachment cache directory (e.g. 300k, 2M, 100M). If the limits is exceeded, new attachments will be rejected.

默认值
5G
价值
5G
NTFY_ATTACHMENT_FILE_SIZE_LIMITVariable

Per-file attachment size limit (e.g. 300k, 2M, 100M). Larger attachment will be rejected.

默认值
15M
价值
15M
NTFY_ATTACHMENT_EXPIRY_DURATIONVariable

Duration after which uploaded attachments will be deleted (e.g. 30s, 20m, 20h).

默认值
3h
价值
3h
NTFY_SMTP_SENDER_ADDRVariable

SMTP server address to allow email sending.

NTFY_SMTP_SENDER_USERVariable

SMTP user; only used if e-mail sending is enabled.

NTFY_SMTP_SENDER_PASSVariable

SMTP password; only used if e-mail sending is enabled.

NTFY_SMTP_SENDER_FROMVariable

SMTP sender e-mail address; only used if e-mail sending is enabled.

NTFY_SMTP_SERVER_ADDR_PREFIXVariable

Optional prefix for the e-mail addresses to prevent spam, e.g. ntfy-.

NTFY_LOG_LEVELVariable

Set log level. Options: INFO, WARN, ERROR, DEBUG or TRACE

默认值
info
价值
info
AppdataPathrw
目标
/config
默认值
/mnt/user/appdata/ntfy
价值
/mnt/user/appdata/ntfy

下载统计数据

15,386,780
下载总数
1,018,589
本月
721,889
平均每月

长期下载总量

加载图表...

详细信息

存储库
binwiederhier/ntfy
最后更新2026-04-21
初见2022-11-13

在Unraid 上运行 Ntfy 。

Ntfy 已被列入Unraid OS 的社区应用程序。探索Unraid ,构建灵活的家庭服务器、NAS 或家庭实验室。