Read Ghost key from environment
This commit is contained in:
@@ -294,7 +294,9 @@ class GhostClient:
|
||||
|
||||
async def main() -> None:
|
||||
args = parse_args()
|
||||
key = Path(args.key_file).read_text(encoding="utf-8").strip()
|
||||
key = os.environ.get("SITE_POSTER_GHOST_ADMIN_KEY", "").strip()
|
||||
if not key:
|
||||
key = Path(args.key_file).read_text(encoding="utf-8").strip()
|
||||
pool = await get_pool()
|
||||
if args.all_ready or args.all_ready_videos:
|
||||
media_condition = (
|
||||
|
||||
Reference in New Issue
Block a user