mirror of
https://github.com/mainnika/nikita-tokarch-uk.git
synced 2026-05-25 01:03:35 +00:00
Support additional headers for the ghost http client
This commit is contained in:
@@ -10,8 +10,9 @@ import (
|
||||
|
||||
// Backend contains backend connection-specific configuration
|
||||
type Backend struct {
|
||||
Addr string `mapstructure:"addr"`
|
||||
Secured bool `mapstructure:"secured"`
|
||||
Addr string `mapstructure:"addr"`
|
||||
Secured bool `mapstructure:"secured"`
|
||||
Headers map[string]string `mapstructure:"headers"`
|
||||
}
|
||||
|
||||
// Content contains content-specific configuration
|
||||
@@ -42,9 +43,9 @@ func init() {
|
||||
pflag.String("unix", "", "unix socket path to listen")
|
||||
pflag.String("base", "", "http URI prefix")
|
||||
|
||||
pflag.StringToString("content.backend.headers", nil, "map of additional headers to send")
|
||||
pflag.String("content.backend.addr", "demo.ghost.io:443", "ghost backend addr")
|
||||
pflag.Bool("content.backend.secured", true, "is ghost backend secured")
|
||||
pflag.String("content.backend", "demo.ghost.io:443", "ghost backend addr")
|
||||
pflag.String("content.key", "22444f78447824223cefc48062", "ghost content api key")
|
||||
pflag.String("content.pinned", "contact", "pinned page slug")
|
||||
pflag.Int("content.postsPerPage", 5, "amount of posts per page")
|
||||
|
||||
Reference in New Issue
Block a user