feat(agents): one-line install and Compose files for agents
The API serves /install.sh with its public address and agent image filled in. The POSIX sh script checks for Linux on a supported CPU, Docker and Compose, writes /opt/uptimesebi/<kind>[-<name>]/compose.yaml and a .env readable only by its owner, starts the agent and waits until it is healthy. Options cover status page hosts with Let's Encrypt, the plain image for manual updates, the Docker socket for checkers and several agents per host; running it again changes the settings. The Compose files in deploy/agent are configured through .env alone, so they also work without the script. Images follow the platform's channel (latest, beta or edge). CI shellchecks the rendered script. Closes #130 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
a35dadd8f6
commit
0c382f814c
11 files changed
+562
-1
No files matched your search
@@ -100,6 +100,7 @@ func (s *Server) Mount(r gin.IRouter) {
|
||||
g := r.Group("/", s.sessions.Load(), s.localize(), auth.CSRF(), s.audit())
|
||||
|
||||
r.GET("/api/openapi.json", s.openAPIJSON)
|
||||
r.GET("/install.sh", s.installScript)
|
||||
g.GET("/api/docs", s.apiDocsPage)
|
||||
|
||||
v1 := g.Group("/api/v1")
|
||||
|
||||
Reference in new issue
Block a user