File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,22 +36,29 @@ var dataDir string
3636
3737func main () {
3838 var (
39- controlPlaneURL string
40- token string
41- isProxy bool
39+ controlPlaneURL string
40+ token string
41+ isProxy bool
42+ logsEndpointFlag string
4243 )
4344
4445 flag .StringVar (& controlPlaneURL , "url" , "" , "Control plane URL (required)" )
4546 flag .StringVar (& token , "token" , "" , "Registration token (required for first run)" )
4647 flag .StringVar (& dataDir , "data-dir" , paths .DataDir , "Data directory for agent state" )
4748 flag .BoolVar (& isProxy , "proxy" , false , "Run as proxy node (handles TLS and public traffic)" )
49+ flag .StringVar (& logsEndpointFlag , "logs-endpoint" , "" , "Override logs endpoint URL (optional)" )
4850 flag .Parse ()
4951
5052 if controlPlaneURL == "" {
5153 log .Fatal ("--url is required" )
5254 }
5355
54- logsEndpoint := fetchLogsEndpoint (controlPlaneURL )
56+ var logsEndpoint string
57+ if logsEndpointFlag != "" {
58+ logsEndpoint = logsEndpointFlag
59+ } else {
60+ logsEndpoint = fetchLogsEndpoint (controlPlaneURL )
61+ }
5562
5663 if isProxy && runtime .GOOS != "linux" {
5764 log .Fatal ("--proxy flag is only supported on Linux" )
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export async function sendServerOfflineAlert(
119119 }
120120
121121 const baseUrl = getAppBaseUrl ( ) ;
122- const dashboardUrl = baseUrl ? `${ baseUrl } /dashboard/servers ` : undefined ;
122+ const dashboardUrl = baseUrl ? `${ baseUrl } /dashboard` : undefined ;
123123
124124 const details = [
125125 { label : "Server Name" , value : options . serverName } ,
@@ -225,7 +225,7 @@ export async function sendDeploymentFailureAlert(
225225 }
226226
227227 const baseUrl = getAppBaseUrl ( ) ;
228- const dashboardUrl = baseUrl ? `${ baseUrl } /dashboard/services ` : undefined ;
228+ const dashboardUrl = baseUrl ? `${ baseUrl } /dashboard` : undefined ;
229229
230230 const details = [
231231 { label : "Service" , value : result . serviceName } ,
You can’t perform that action at this time.
0 commit comments