prefixes: Add 'resolver-blocked.txt' config
This commit is contained in:
parent
6f2ba18227
commit
3be5e85ef7
12 changed files with 95 additions and 19 deletions
|
|
@ -20,6 +20,7 @@ type Template struct {
|
|||
DeployRoot string `env:"DEPLOY_ROOT"`
|
||||
DefaultDomain string `env:"DEFAULT_DOMAIN"`
|
||||
SelfOverridesFile string `env:"SELF_OVERRIDES_FILE"`
|
||||
SelfResolverBlockFile string `env:"SELF_RESOLVER_BLOCK_FILE"`
|
||||
AuthorizedKeys string `env:"AUTHORIZED_KEYS_FILE"`
|
||||
TriplestoreAdminUser string `env:"GRAPHDB_ADMIN_USER"`
|
||||
TriplestoreAdminPassword string `env:"GRAPHDB_ADMIN_PASSWORD"`
|
||||
|
|
@ -43,6 +44,10 @@ func (tpl *Template) SetDefaults(env environment.Environment) (err error) {
|
|||
tpl.SelfOverridesFile = filepath.Join(tpl.DeployRoot, core.OverridesJSON)
|
||||
}
|
||||
|
||||
if tpl.SelfResolverBlockFile == "" {
|
||||
tpl.SelfResolverBlockFile = filepath.Join(tpl.DeployRoot, core.ResolverBlockedTXT)
|
||||
}
|
||||
|
||||
if tpl.AuthorizedKeys == "" {
|
||||
tpl.AuthorizedKeys = filepath.Join(tpl.DeployRoot, core.AuthorizedKeys)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue