mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-06-24 01:47:23 +00:00
feat(vault): add VAULT_TAG to share key vault across services
Lets sibling services read/write one key-vault namespace instead of being tied to their own tag. New Service.VAULT_TAG class var, resolved via Services.get_vault_tag() in both the dl and serve paths. AMZN_WEB opts into the AMZN namespace; EXAMPLE documents usage.
This commit is contained in:
@@ -75,6 +75,9 @@ class EXAMPLE(Service):
|
||||
TITLE_RE = r"^(?:https?://(?:www\.)?domain\.com/details/)?(?P<title_id>[^/?#]+)"
|
||||
# NO_SUBTITLES: service-level idiom telling the pipeline subs are handled in-band.
|
||||
NO_SUBTITLES = False
|
||||
# VAULT_TAG: store/read keys under a different vault namespace than this service's tag.
|
||||
# Lets sibling services share one key vault. Omit to use the service's own tag.
|
||||
VAULT_TAG = "DIFFERENT_NAME"
|
||||
|
||||
# Map our API's range strings <-> unshackle's Video.Range enum.
|
||||
VIDEO_RANGE_MAP = {
|
||||
|
||||
Reference in New Issue
Block a user