feat: add Windows-first deployment flow
This commit is contained in:
1 parent
7353d140b8
commit
da01967c2e
5 files changed
+176
-31
No files matched your search
+2
-2
@@ -93,7 +93,7 @@ async def health():
|
||||
|
||||
@app.get("/hls/{path:path}")
|
||||
async def serve_hls(path: str):
|
||||
hls_root = "/tmp/hls"
|
||||
hls_root = settings.hls_runtime_dir
|
||||
fs_path = os.path.join(hls_root, path)
|
||||
if os.path.isfile(fs_path):
|
||||
return FileResponse(fs_path)
|
||||
@@ -111,4 +111,4 @@ async def serve_hls(path: str):
|
||||
media_type=resp.headers.get("content-type"),
|
||||
)
|
||||
except Exception:
|
||||
raise HTTPException(status_code=404)
|
||||
raise HTTPException(status_code=404)
|
||||
Reference in new issue
Block a user