feat(cluster): add reload and restart for nginx

This commit is contained in:
Jacky 2025-04-05 15:37:47 +08:00
parent c086455772
commit 2d437ff0cc
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
24 changed files with 2897 additions and 1239 deletions

View file

@ -10,6 +10,24 @@ const notifications: Record<string, { title: () => string, content: (args: any)
content: (args: any) => $gettext('Please generate new recovery codes in the preferences immediately to prevent lockout.', args),
},
// cluster module notifications
'Reload Remote Nginx Error': {
title: () => $gettext('Reload Remote Nginx Error'),
content: (args: any) => $gettext('Reload Nginx on %{node} failed, response: %{resp}', args),
},
'Reload Remote Nginx Success': {
title: () => $gettext('Reload Remote Nginx Success'),
content: (args: any) => $gettext('Reload Nginx on %{node} successfully', args),
},
'Restart Remote Nginx Error': {
title: () => $gettext('Restart Remote Nginx Error'),
content: (args: any) => $gettext('Restart Nginx on %{node} failed, response: %{resp}', args),
},
'Restart Remote Nginx Success': {
title: () => $gettext('Restart Remote Nginx Success'),
content: (args: any) => $gettext('Restart Nginx on %{node} successfully', args),
},
// cert module notifications
'Sync Certificate Error': {
title: () => $gettext('Sync Certificate Error'),