mirror of
https://github.com/tborychowski/self-hosted-cookbook.git
synced 2025-05-13 19:00:22 +00:00
ntfy
This commit is contained in:
parent
e8d940b36d
commit
b834590a66
@ -287,6 +287,7 @@ The aims is to provide a ready-to-run recipes that you can just copy, paste and
|
|||||||
- [Code server](apps/other/code.md)
|
- [Code server](apps/other/code.md)
|
||||||
- [Firefox sync server](apps/other/firefox-sync.md)
|
- [Firefox sync server](apps/other/firefox-sync.md)
|
||||||
- [LanguageTool server](apps/other/language-tool.md)
|
- [LanguageTool server](apps/other/language-tool.md)
|
||||||
|
- [Ntfy](apps/other/ntfy.md)
|
||||||
- [VPN client](apps/other/vpn.md)
|
- [VPN client](apps/other/vpn.md)
|
||||||
- [OpenSpeedTest](apps/other/openspeedtest.md)
|
- [OpenSpeedTest](apps/other/openspeedtest.md)
|
||||||
|
|
||||||
|
51
apps/other/ntfy.md
Normal file
51
apps/other/ntfy.md
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
# NTFY
|
||||||
|
A self-hosted notification server (like pushover).
|
||||||
|
|
||||||
|
- has mobile apps for ios and android
|
||||||
|
- interesting conceptually (simple pub-sub)
|
||||||
|
- very easy to use (from curl to php)
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
- [Homepage](https://ntfy.sh)
|
||||||
|
- [Github repo](https://github.com/binwiederhier/ntfy)
|
||||||
|
- [Docs](https://ntfy.sh/docs/)
|
||||||
|
|
||||||
|
|
||||||
|
## ntfy/server.yml
|
||||||
|
```yml
|
||||||
|
# options: https://ntfy.sh/docs/config/
|
||||||
|
|
||||||
|
base-url: https://ntfy.domain.com
|
||||||
|
|
||||||
|
# needed for performance
|
||||||
|
cache-file: /var/cache/ntfy/cache.db
|
||||||
|
cache-duration: "12h"
|
||||||
|
cache-startup-queries: |
|
||||||
|
pragma journal_mode = WAL;
|
||||||
|
pragma synchronous = normal;
|
||||||
|
pragma temp_store = memory;
|
||||||
|
|
||||||
|
# This is needed for instant mobile notifications
|
||||||
|
upstream-base-url: "https://ntfy.sh"
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## docker-compose.yml
|
||||||
|
```yml
|
||||||
|
---
|
||||||
|
services:
|
||||||
|
ntfy:
|
||||||
|
image: binwiederhier/ntfy
|
||||||
|
container_name: ntfy
|
||||||
|
restart: unless-stopped
|
||||||
|
command:
|
||||||
|
- serve
|
||||||
|
environment:
|
||||||
|
- TZ=Europe/Dublin
|
||||||
|
volumes:
|
||||||
|
- ./cache:/var/cache/ntfy
|
||||||
|
- ./ntfy:/etc/ntfy
|
||||||
|
ports:
|
||||||
|
- 3040:80
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user