@@ -44,8 +44,8 @@ services:
4444 command :
4545 - serve
4646 volumes :
47- - ./ntfy-cache :/var/cache/ntfy
48- - ./ntfy-etc :/etc/ntfy
47+ - ./ntfy_cache :/var/cache/ntfy
48+ - ./ntfy_etc :/etc/ntfy
4949
5050networks :
5151 default :
@@ -56,7 +56,6 @@ networks:
5656` .env`
5757` ` ` bash
5858# GENERAL
59- MY_DOMAIN=example.com
6059DOCKER_MY_NETWORK=caddy_net
6160TZ=Europe/Bratislava
6261` ` `
@@ -75,26 +74,33 @@ ntfy.{$MY_DOMAIN} {
7574
7675# The usage
7776
78- [Documentations](https://docs.ntfy.sh/publish/)
77+ [Documentation](https://docs.ntfy.sh/publish/)
78+
79+ ntfy uses "topics" for categorization, which creates a very handy disconnect from
80+ sender and receiver.<br>
81+ Lets say there's a minecraft server and there are notifications when someone
82+ joins. These notifications are send to a `minecraft` topic, not to a specific users.
83+ This gives great flexibility and is the main reason why ntfy wins
84+ over other solutions.
7985
8086#### Linux
8187
82- `curl -d "blablablaaa " https://ntfy.example.com/whatevers `
88+ `curl -d "a player joined " https://ntfy.example.com/minecraft `
8389
8490#### Windows
8591
8692* win10+
8793
88- `Invoke-RestMethod -Method 'Post' -Uri https://ntfy.example.com/whatevers -Body "blablablaaa " -UseBasicParsing`
94+ `Invoke-RestMethod -Method 'Post' -Uri https://ntfy.example.com/minecraft -Body "a player joined " -UseBasicParsing`
8995
9096* win8.1 and older need bit extra for https to work<br>
9197
9298 ```
9399 [ Net.ServicePointManager] ::SecurityProtocol = [ Net.SecurityProtocolType] ::Tls12
94- Invoke-RestMethod -Method 'Post' -Uri https://ntfy.example.com/whatevers -Body "blablablaaa " -UseBasicParsing
100+ Invoke-RestMethod -Method 'Post' -Uri https://ntfy.example.com/minecraft -Body "a player joined " -UseBasicParsing
95101 ```
96102
97- #### Linux systemd unit file service
103+ #### systemd unit file service
98104
99105To allows use of ntfy `OnFailure` and `OnSuccess` inside systemd unit files.
100106
0 commit comments