From 64f2adb258e88c3bb7a6ec7b67533a78fb9afd9b Mon Sep 17 00:00:00 2001 From: Ivan Date: Mon, 2 Dec 2024 21:15:56 -0800 Subject: [PATCH] Updated CORS and increased timeout for onshape --- www/app/crud/onshape.py | 2 +- www/settings/configs/production.yaml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/www/app/crud/onshape.py b/www/app/crud/onshape.py index ca811695..a6d883fe 100644 --- a/www/app/crud/onshape.py +++ b/www/app/crud/onshape.py @@ -181,7 +181,7 @@ async def worker(onshape_url: str, listing: Listing, config: ConverterConfig, qu await queue.put(None) async def worker_with_timeout() -> None: - await asyncio.wait_for(worker(onshape_url, listing, config, queue), timeout=120) + await asyncio.wait_for(worker(onshape_url, listing, config, queue), timeout=300) while not queue.empty(): await queue.get() await queue.put(None) diff --git a/www/settings/configs/production.yaml b/www/settings/configs/production.yaml index 294dd8e0..e73bb394 100644 --- a/www/settings/configs/production.yaml +++ b/www/settings/configs/production.yaml @@ -3,5 +3,7 @@ crypto: dynamo: table_name: www site: - homepage: https://kscale.dev + homepage: + - https://kscale.dev + - https://www.kscale.dev artifact_base_url: https://media.kscale.store/