Skip to content

Commit

Permalink
Merge pull request #15 from darron/add-news-story-cli-command
Browse files Browse the repository at this point in the history
Small fix to handle adding TLS and a remote target to the mix
  • Loading branch information
darron authored Oct 22, 2023
2 parents c0b78bf + 6410546 commit 6dde338
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/send_news_story.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,15 @@ var (
Use: "news",
Short: "Send core.NewsStory to HTTP endpoint",
Run: func(cmd *cobra.Command, args []string) {
tlsConfig := config.TLS{
DomainNames: tlsDomains,
}
conf, err := config.Get(
config.WithPort(port),
config.WithLogger(logLevel, logFormat),
config.WithJWTToken(jwtToken))
config.WithJWTToken(jwtToken),
config.WithTLS(tlsConfig),
)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit 6dde338

Please sign in to comment.