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