prefixes: Add 'resolver-blocked.txt' config

This commit is contained in:
Tom Wiesing 2022-09-21 16:04:22 +02:00
parent 6f2ba18227
commit 3be5e85ef7
No known key found for this signature in database
12 changed files with 95 additions and 19 deletions

View file

@ -0,0 +1,16 @@
# This file contains prefixes that should not be picked up by the global resolver.
# They will not appear in the list of prefixes.
# It should be one prefix per line, '#' and '//' as well as blank lines are treated as comments
# definitely shouldn't be resolved to any WissKI
http://www.w3.org/
xsd:
urn:
# generic prefixes by some common adapters.
# you may or may not want these.
http://d-nb.info/gnd/
http://erlangen-crm.org/
http://id.gnm.de/ont/
http://zotero.org/
https://api.zotero.org/

View file

@ -23,6 +23,14 @@ const OverridesJSON = "overrides.json"
//go:embed bootstrap/overrides.json
var DefaultOverridesJSON []byte
// ResolverBlockTXT is the name of the resolver blocked prefix file.
// It should be located inside the deployment directory.
const ResolverBlockedTXT = "resolver-blocked.txt"
// ResolverBlockTXT contains a template for 'resolver-blocked' file
//go:embed bootstrap/resolver-blocked.txt
var DefaultResolverBlockedTXT []byte
// AuthorizedKeys contains the default name for the 'global_authorized_keys' file
const AuthorizedKeys = "authorized_keys"