Servers and the agent, dashboard (2.1.0): servers, installs, updates, jobs, ports, download page
- Servers: add with a one-time join command, each server's CPU / RAM charts (24 h, 7 days, 90 days, spikes over 85% marked, table view), configuration, PM2 processes, sites, jobs and alerts. - Installs: New install (server chooser with free RAM, CPU and sites), Link existing, FastPanel steps and Proxy done, schedule / emergency update, adopt, uninstall (2FA and the short name). - Updates: one release to many installs (a batch), planned jobs. - Jobs with their reports; Ports & defaults; the public download page that decrypts an export in the browser. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -91,7 +91,7 @@ router.get('/servers/:id', wrap(async (req, res) => {
|
||||
server: serverSummary(s),
|
||||
config: masked(servers.serverConfig(s)),
|
||||
processes: s.lastStats?.processes || [],
|
||||
stats: stats.map(x => ({ at: x.at, cpu: x.cpuPercent, cpuPeak: x.cpuPeak, ram: x.ramUsedPercent, ramPeak: x.ramPeak, disk: x.diskUsedPercent })),
|
||||
stats: stats.map(x => ({ at: x.at, cpuPercent: x.cpuPercent, cpuPeak: x.cpuPeak, ramUsedPercent: x.ramUsedPercent, ramPeak: x.ramPeak, diskUsedPercent: x.diskUsedPercent })),
|
||||
deployments: s.deployments,
|
||||
jobs: recentJobs,
|
||||
alerts: s.alerts,
|
||||
|
||||
@@ -317,7 +317,7 @@ async function fastPanelText(d) {
|
||||
' Allow uploads up to 25 MB.',
|
||||
'3. Turn on Let\'s Encrypt for the site.',
|
||||
`4. DNS: ${d.domain} → ${ip || '<central server IP>'} (${dnsOk === true ? 'checked: points there' : dnsOk === false ? 'not yet' : 'not checked: set the central server IP in Settings'})`,
|
||||
`5. Then click "Proxy done" in the Hub: ${hubUrl()}/servers/deployments/${d.id}`,
|
||||
`5. Then click "Proxy done" in the Hub: ${hubUrl()}/servers/installs/${d.id}`,
|
||||
].join('\n');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user