mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Offer the possibility to set Pocket Consumer Key as environment variable
This commit is contained in:
parent
44decae557
commit
b270159aae
10 changed files with 31 additions and 19 deletions
|
@ -197,6 +197,11 @@ func (c *Config) CreateAdmin() bool {
|
|||
return c.get("CREATE_ADMIN", "") != ""
|
||||
}
|
||||
|
||||
// PocketConsumerKey returns the Pocket Consumer Key if defined as environment variable.
|
||||
func (c *Config) PocketConsumerKey(defaultValue string) string {
|
||||
return c.get("POCKET_CONSUMER_KEY", defaultValue)
|
||||
}
|
||||
|
||||
// NewConfig returns a new Config.
|
||||
func NewConfig() *Config {
|
||||
return &Config{IsHTTPS: os.Getenv("HTTPS") != ""}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue