Categories

Copyright, Attribution and Licenses

Copyright, Attribution and Licenses

Privacy Policy

Privacy Policy

Rpi Install NTFY

09/05/2024

sudo apt install curl


curl -fsSL https://archive.heckel.io/apt/pubkey.txt | sudo gpg --dearmor -o /etc/apt/keyrings/archive.heckel.io.gpg


For 64 bit

echo "deb [arch=arm64 signed-by=/etc/apt/keyrings/archive.heckel.io.gpg] https://archive.heckel.io/apt debian main" | sudo tee /etc/apt/sources.list.d/archive.heckel.io.list


For 32Bit

echo "deb [arch=armhf signed-by=/etc/apt/keyrings/archive.heckel.io.gpg] https://archive.heckel.io/apt debian main" | sudo tee /etc/apt/sources.list.d/archive.heckel.io.list


sudo apt update


sudo apt install ntfy


check your settings;


sudo chmod 777 -R /var/lib/ntfy/

// or create a file named as "user.db"


sudo nano /etc/ntfy/server.yml



base-url: "http://notification.yourdomain.com"
listen-http: ":8081"
auth-file: "/var/lib/ntfy/user.db"
auth-default-access: "read-write"
upstream-base-url: "https://ntfy.sh" # for IOS (caution for limits!)


sudo ntfy user add custom_username


restart pi, ready to go