Read Ghost key from environment

This commit is contained in:
Your Name
2026-07-22 17:38:33 +05:00
parent df2cc92aba
commit 9bd9faf11d
+2
View File
@@ -294,6 +294,8 @@ class GhostClient:
async def main() -> None:
args = parse_args()
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: