Skip to content

Fix remote media redirects in VLM demo docs - #4591

Merged
kbalka merged 1 commit into
mainfrom
kbalka_fix_media_redirects_in_vlm_demo_docs
Sep 22, 2026
Merged

kbalka merged 1 commit into
mainfrom
kbalka_fix_media_redirects_in_vlm_demo_docs

Conversation

@kbalka

@kbalka kbalka commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

🛠 Summary

CVS-195227

In demo docs, adding OVMS_MEDIA_URL_ALLOW_REDIRECTS=1 parameter to deployment snippets, in sections where image to process is passed as url to download over http.

🧪 Checklist

  • [not required ] Unit tests added.
  • The documentation updated.
  • [x ] Change follows security best practices.
    ``

Copilot AI lite review requested due to automatic review settings September 22, 2026 09:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Redirects can bypass the documented media-domain allowlist unless each destination is validated.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 1 High severity

Open (1)
What changed in this PR

This pull request updates VLM demo deployment documentation to support remote media URLs that follow redirects.

Changes:

  • Enables OVMS_MEDIA_URL_ALLOW_REDIRECTS=1 for Docker deployment.
  • Enables the same setting for Windows bare-metal deployment.
File Summary
demos/​continuous_batching/​vlm/​README.md Documents redirect configuration for Docker and Windows deployments.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

# in case GPU is available
export GPU_ARGS=$(if ls /dev/dri/render* >/dev/null 2>&1; then echo "--device /dev/dri --group-add $(stat -c '%g' /dev/dri/render* | head -n1)"; fi)
docker run -d ${GPU_ARGS} -u $(id -u):$(id -g) --rm -p 8000:8000 -v ${HOME}/models:/models:rw openvino/model_server:weekly --rest_port 8000 --source_model OpenVINO/Qwen3.6-35B-A3B-int4-ov --model_repository_path /models --allowed_media_domains raw.githubusercontent.com
docker run -d ${GPU_ARGS} -u $(id -u):$(id -g) --rm -p 8000:8000 -v ${HOME}/models:/models:rw -e OVMS_MEDIA_URL_ALLOW_REDIRECTS=1 openvino/model_server:weekly --rest_port 8000 --source_model OpenVINO/Qwen3.6-35B-A3B-int4-ov --model_repository_path /models --allowed_media_domains raw.githubusercontent.com
@kbalka
kbalka merged commit 83a89f5 into main Sep 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants