mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-02-20 17:36:24 +00:00
Update notification service
This commit is contained in:
@@ -416,39 +416,23 @@ export function NotificationSettings() {
|
||||
</div>
|
||||
<div className="space-y-1.5">
|
||||
<p className="text-[11px] font-medium text-muted-foreground">
|
||||
Add to /etc/proxmox-backup/notifications.cfg on the PBS host:
|
||||
Append to /etc/proxmox-backup/notifications.cfg on the PBS host:
|
||||
</p>
|
||||
<pre className="text-[11px] bg-background p-2 rounded border border-border overflow-x-auto font-mono">
|
||||
{`webhook: proxmenux-webhook
|
||||
\turl http://<PVE_IP>:8008/api/notifications/webhook
|
||||
\tmethod post
|
||||
\theader Content-Type:application/json
|
||||
\theader X-Webhook-Secret:{{ secrets.proxmenux_secret }}
|
||||
\turl http://<PVE_IP>:8008/api/notifications/webhook
|
||||
|
||||
matcher: proxmenux-pbs
|
||||
\ttarget proxmenux-webhook
|
||||
\tmatch-severity warning,error`}
|
||||
</pre>
|
||||
</div>
|
||||
<div className="space-y-1.5">
|
||||
<p className="text-[11px] font-medium text-muted-foreground">
|
||||
Add to /etc/proxmox-backup/notifications-priv.cfg:
|
||||
</p>
|
||||
<pre className="text-[11px] bg-background p-2 rounded border border-border overflow-x-auto font-mono">
|
||||
{`webhook: proxmenux-webhook
|
||||
\tsecret proxmenux_secret <YOUR_SECRET>`}
|
||||
</pre>
|
||||
</div>
|
||||
<div className="flex items-start gap-2 p-2 rounded-md bg-blue-500/10 border border-blue-500/20">
|
||||
<Info className="h-3.5 w-3.5 text-blue-400 shrink-0 mt-0.5" />
|
||||
<div className="text-[10px] text-blue-400/90 leading-relaxed space-y-1">
|
||||
<p>
|
||||
{"Replace <PVE_IP> with the IP of this PVE node (not 127.0.0.1, unless PBS runs on the same host)."}
|
||||
</p>
|
||||
<p>
|
||||
{"Replace <YOUR_SECRET> with the webhook secret shown in your notification settings."}
|
||||
</p>
|
||||
</div>
|
||||
<p className="text-[10px] text-blue-400/90 leading-relaxed">
|
||||
{"Replace <PVE_IP> with the IP of this PVE node (not 127.0.0.1, unless PBS runs on the same host). Append at the end -- do not delete existing content."}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</details>
|
||||
@@ -1079,7 +1063,7 @@ matcher: proxmenux-pbs
|
||||
</button>
|
||||
</div>
|
||||
<p className="text-[10px] text-muted-foreground">
|
||||
{"Proxmox must send this value in the X-Webhook-Secret header. Auto-generated on first enable."}
|
||||
{"Used for remote connections only (e.g. PBS on another host). Local PVE webhook runs on localhost and does not need this header."}
|
||||
</p>
|
||||
</div>
|
||||
<div className="space-y-1.5">
|
||||
@@ -1108,28 +1092,19 @@ matcher: proxmenux-pbs
|
||||
(Verify, Prune, GC, Sync) require separate configuration on the PBS server.
|
||||
</p>
|
||||
<p className="text-[10px] font-medium text-muted-foreground">
|
||||
Add to /etc/proxmox-backup/notifications.cfg:
|
||||
Append to /etc/proxmox-backup/notifications.cfg:
|
||||
</p>
|
||||
<pre className="text-[10px] bg-background p-2 rounded border border-border overflow-x-auto font-mono">
|
||||
{`webhook: proxmenux-webhook
|
||||
\turl http://<PVE_IP>:8008/api/notifications/webhook
|
||||
\tmethod post
|
||||
\theader Content-Type:application/json
|
||||
\theader X-Webhook-Secret:{{ secrets.proxmenux_secret }}
|
||||
\turl http://<PVE_IP>:8008/api/notifications/webhook
|
||||
|
||||
matcher: proxmenux-pbs
|
||||
\ttarget proxmenux-webhook
|
||||
\tmatch-severity warning,error`}
|
||||
</pre>
|
||||
<p className="text-[10px] font-medium text-muted-foreground">
|
||||
Add to /etc/proxmox-backup/notifications-priv.cfg:
|
||||
</p>
|
||||
<pre className="text-[10px] bg-background p-1.5 rounded border border-border overflow-x-auto font-mono">
|
||||
{`webhook: proxmenux-webhook
|
||||
\tsecret proxmenux_secret <SECRET>`}
|
||||
</pre>
|
||||
<p className="text-[10px] text-muted-foreground">
|
||||
{"Replace <PVE_IP> with this node's IP and <SECRET> with the webhook secret above."}
|
||||
{"Replace <PVE_IP> with this node's IP. Append at the end -- do not delete existing content."}
|
||||
</p>
|
||||
</div>
|
||||
</details>
|
||||
|
||||
Reference in New Issue
Block a user