1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

Add option to enable maintenance mode

This commit is contained in:
Frédéric Guillot 2020-09-12 18:31:45 -07:00
parent a8de067810
commit df7a6e18fd
5 changed files with 37 additions and 1 deletions

View file

@ -190,6 +190,10 @@ func (p *Parser) parseLines(lines []string) (err error) {
p.opts.authProxyHeader = parseString(value, defaultAuthProxyHeader)
case "AUTH_PROXY_USER_CREATION":
p.opts.authProxyUserCreation = parseBool(value, defaultAuthProxyUserCreation)
case "MAINTENANCE_MODE":
p.opts.maintenanceMode = parseBool(value, defaultMaintenanceMode)
case "MAINTENANCE_MESSAGE":
p.opts.maintenanceMessage = parseString(value, defaultMaintenanceMessage)
}
}