Skip to content

Commit

Permalink
Add: custom header configuration to the remote client
Browse files Browse the repository at this point in the history
  • Loading branch information
shiro8613 authored and QuintenQVD0 committed Jan 17, 2025
1 parent 1baf955 commit cb5482a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ func rootCmdRun(cmd *cobra.Command, _ []string) {
pclient := remote.New(
config.Get().PanelLocation,
remote.WithCredentials(config.Get().AuthenticationTokenId, config.Get().AuthenticationToken),
remote.WithCustomHeader(config.Get().RemoteQuery.CustomHeaders),
remote.WithHttpClient(&http.Client{
Timeout: time.Second * time.Duration(config.Get().RemoteQuery.Timeout),
}),
Expand Down

0 comments on commit cb5482a

Please sign in to comment.