mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
Added use selfhosted ntfy
This commit is contained in:
@@ -1488,7 +1488,7 @@ def email_reporting ():
|
|||||||
closeDB()
|
closeDB()
|
||||||
#-------------------------------------------------------------------------------
|
#-------------------------------------------------------------------------------
|
||||||
def send_ntfy (_Text):
|
def send_ntfy (_Text):
|
||||||
requests.post("https://ntfy.sh/{}".format(NTFY_TOPIC),
|
requests.post("{}/{}".format( NTFY_HOST,NTFY_TOPIC),
|
||||||
data=_Text,
|
data=_Text,
|
||||||
headers={
|
headers={
|
||||||
"Title": "Pi.Alert Notification",
|
"Title": "Pi.Alert Notification",
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ APPRISE_URL = 'mailto://smtp-relay.sendinblue.com:587?from=user@gmai
|
|||||||
# NTFY (https://ntfy.sh/) settings
|
# NTFY (https://ntfy.sh/) settings
|
||||||
# ----------------------
|
# ----------------------
|
||||||
REPORT_NTFY = False
|
REPORT_NTFY = False
|
||||||
|
NTFY_HOST = 'https://ntfy.sh'
|
||||||
NTFY_TOPIC = 'replace_my_secure_topicname_91h889f28'
|
NTFY_TOPIC = 'replace_my_secure_topicname_91h889f28'
|
||||||
|
|
||||||
# PUSHSAFER (https://www.pushsafer.com/) settings
|
# PUSHSAFER (https://www.pushsafer.com/) settings
|
||||||
@@ -98,4 +99,3 @@ SCAN_SUBNETS = '--localnet'
|
|||||||
# Maintenance Tasks Cron
|
# Maintenance Tasks Cron
|
||||||
# ----------------------
|
# ----------------------
|
||||||
DAYS_TO_KEEP_EVENTS = 90
|
DAYS_TO_KEEP_EVENTS = 90
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user