diff --git a/emhttp/plugins/dynamix/NotificationAgents.page b/emhttp/plugins/dynamix/NotificationAgents.page index b6ecebc35..a14f9bef1 100644 --- a/emhttp/plugins/dynamix/NotificationAgents.page +++ b/emhttp/plugins/dynamix/NotificationAgents.page @@ -190,6 +190,7 @@ foreach ($xml_files as $xml_file) { $vHelp = preg_replace('#\[([^\]]*)\]#', '<$1>', $v->attributes()->Help); $currentValue = isset($values[$vName]) ? $values[$vName] : $vDefault; $isTitleOrMessage = preg_match('/title|message/', $vDesc); + $isVerify = preg_match('/verify/i', $vDesc); ?>
:
@@ -202,6 +203,11 @@ foreach ($xml_files as $xml_file) { + + diff --git a/emhttp/plugins/dynamix/agents/Gotify.xml b/emhttp/plugins/dynamix/agents/Gotify.xml index 049b942f0..d4b620b5b 100644 --- a/emhttp/plugins/dynamix/agents/Gotify.xml +++ b/emhttp/plugins/dynamix/agents/Gotify.xml @@ -3,6 +3,7 @@ Gotify SERVER_URL + VERIFY_TLS APP_TOKEN TITLE MESSAGE @@ -29,7 +30,8 @@ # Remove any trailing slash SERVER_URL=${SERVER_URL%/} - curl -s -k -X POST \ + [[ "$VERIFY_TLS" == "no" ]] && K_FLAG="-k" || K_FLAG="" + curl -s $K_FLAG -X POST \ -F "title=$TITLE" \ -F "message=$MESSAGE" \ -F "priority=$PRIORITY" \ diff --git a/emhttp/plugins/dynamix/agents/PushBits.xml b/emhttp/plugins/dynamix/agents/PushBits.xml index fc3ee275d..5e54b16db 100644 --- a/emhttp/plugins/dynamix/agents/PushBits.xml +++ b/emhttp/plugins/dynamix/agents/PushBits.xml @@ -3,6 +3,7 @@ PushBits SERVER_URL + VERIFY_TLS APP_TOKEN TITLE MESSAGE @@ -29,7 +30,8 @@ # Remove any trailing slash SERVER_URL=${SERVER_URL%/} - curl -s -k -X POST \ + [[ "$VERIFY_TLS" == "no" ]] && K_FLAG="-k" || K_FLAG="" + curl -s $K_FLAG -X POST \ -F "title=$TITLE" \ -F "message=$MESSAGE" \ -F "priority=$PRIORITY" \