feat(api): manage status pages with themes, custom domains and export
Organizations build pages from their monitors, grouped into sections with public names, choose an accent color, logo and CSS, verify custom domains with a TXT record and export a page as one self-contained HTML file. Assignments scoped to a single status page are honored. Closes #21 Closes #23 Closes #24 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017GpWAskjmYtZpuQ5JwYTX3
This commit is contained in:
1 parent
2b72715a9d
commit
a6126b353e
15 files changed
+2382
-228
No files matched your search
@@ -84,6 +84,9 @@ type API struct {
|
||||
// e.g. smtp://user:pass@host:587?from=alerts@example.com. Empty disables
|
||||
// email channels.
|
||||
SMTPURL string `env:"UPTIME_SMTP_URL"`
|
||||
// StatusPageURL is where the platform's status page servers are
|
||||
// reachable; the console links pages as <StatusPageURL>/<slug>.
|
||||
StatusPageURL string `env:"UPTIME_STATUSPAGE_URL" envDefault:"http://localhost:8082"`
|
||||
}
|
||||
|
||||
// SSOAllowPrivate resolves SSOPrivateNetworks.
|
||||
@@ -141,6 +144,9 @@ type StatusPage struct {
|
||||
Common
|
||||
Agent
|
||||
Listen string `env:"UPTIME_STATUSPAGE_LISTEN" envDefault:":8082"`
|
||||
// Hosts are the host names that serve pages by slug, e.g.
|
||||
// status.example.com. Any other host is treated as a custom domain.
|
||||
Hosts []string `env:"UPTIME_STATUSPAGE_HOSTS" envSeparator:"," envDefault:"localhost"`
|
||||
}
|
||||
|
||||
// Load parses the environment into a T, applying envDefault tags.
|
||||
|
||||
Reference in new issue
Block a user