mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Get "$file": "../path" mechanism working again, closes #839
This commit is contained in:
parent
793a52b317
commit
9ae0d483ea
1 changed files with 2 additions and 0 deletions
|
|
@ -911,6 +911,8 @@ def resolve_env_secrets(config, environ):
|
|||
if isinstance(config, dict):
|
||||
if list(config.keys()) == ["$env"]:
|
||||
return environ.get(list(config.values())[0])
|
||||
elif list(config.keys()) == ["$file"]:
|
||||
return open(list(config.values())[0]).read()
|
||||
else:
|
||||
return {
|
||||
key: resolve_env_secrets(value, environ)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue