1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-06 17:41:00 +00:00

Add config options to disable HTTP and scheduler services

This commit is contained in:
Frédéric Guillot 2018-11-11 15:54:19 -08:00
parent 487852f07e
commit becd086865
5 changed files with 80 additions and 3 deletions

View file

@ -214,6 +214,16 @@ func (c *Config) ProxyImages() string {
return getStringValue("PROXY_IMAGES", defaultProxyImages)
}
// HasHTTPService returns true if the HTTP service is enabled.
func (c *Config) HasHTTPService() bool {
return !getBooleanValue("DISABLE_HTTP_SERVICE")
}
// HasSchedulerService returns true if the scheduler service is enabled.
func (c *Config) HasSchedulerService() bool {
return !getBooleanValue("DISABLE_SCHEDULER_SERVICE")
}
// NewConfig returns a new Config.
func NewConfig() *Config {
cfg := &Config{