Skip to content

Commit

Permalink
beemo: rename admin interface conf
Browse files Browse the repository at this point in the history
  • Loading branch information
bnewbold committed Sep 12, 2023
1 parent cdc0baf commit 6489a3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/beemo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@ func run(args []string) error {
EnvVars: []string{"ATP_PDS_HOST"},
},
&cli.StringFlag{
Name: "redsky-host",
Usage: "method, hostname, and port of redsky, for direct links",
Name: "admin-host",
Usage: "method, hostname, and port of admin interface (eg, Ozone), for direct links",
Value: "http://localhost:3000",
EnvVars: []string{"ATP_REDSKY_HOST"},
EnvVars: []string{"ATP_ADMIN_HOST", "ATP_REDSKY_HOST"},
},
&cli.StringFlag{
Name: "handle",
Expand Down Expand Up @@ -171,7 +171,7 @@ func pollNewReports(cctx *cli.Context) error {
msg += fmt.Sprintf("recent unresolved: `%d`\t", len(mrr.Reports))
msg += fmt.Sprintf("instance: `%s`\n", cctx.String("pds-host"))
msg += fmt.Sprintf("reasonType: `%s`\t", shortType)
msg += fmt.Sprintf("Redsky: %s/reports/%d\n", cctx.String("redsky-host"), report.Id)
msg += fmt.Sprintf("Admin: %s/reports/%d\n", cctx.String("admin-host"), report.Id)
//msg += fmt.Sprintf("reportedByDid: `%s`\n", report.ReportedByDid)
log.Infof("found new report, notifying slack: %s", report)
err := sendSlackMsg(cctx, msg)
Expand Down

0 comments on commit 6489a3f

Please sign in to comment.