mirror of
https://github.com/dehydrated-io/dehydrated.git
synced 2026-01-14 15:43:35 +01:00
[PR #611] [CLOSED] Defer verification of domain-specific config options for --cron #872
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dehydrated-io/dehydrated/pull/611
Author: @chrisnovakovic
Created: 12/7/2018
Status: ❌ Closed
Base:
master← Head:defer-verify-config📝 Commits (1)
c27783bDefer verification of domain-specific config options for --cron📊 Changes
1 file changed (+35 additions, -10 deletions)
View changed files
📝
dehydrated(+35 -10)📄 Description
The
--cronoption supports the loading of domain-specific config files (via theDOMAINS_Doption in the global config file), but all configuration options are verified before the domain-specific config file is loaded, meaning that an otherwise-valid configuration split across both the global and domain-specific config files raises an error. I first ran into this problem when I set a domain-specificWELLKNOWNpath and no value forWELLKNOWNon a system where the default directory/var/www/dehydrateddidn't exist, and the resulting behaviour felt counter-intuitive after I'd specifically requested a particularWELLKNOWNpath for that domain:This PR defers verification of options that may be included in domain-specific config files until after any domain-specific config file has been read.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.