mirror of
https://github.com/run-llama/llama_deploy.git
synced 2026-08-25 10:39:36 -04:00
[PR #440] [MERGED] feat: make apiserver host and port configurable via env vars #465
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/llama_deploy/pull/440
Author: @masci
Created: 1/25/2025
Status: ✅ Merged
Merged: 1/25/2025
Merged by: @masci
Base:
main← Head:massi/apiserver-config📝 Commits (1)
d0d84a3fix: make apiserver host and port configurable via env vars📊 Changes
2 files changed (+37 additions, -2 deletions)
View changed files
➕
e2e_tests/apiserver/test_service_entrypoint.py(+30 -0)📝
llama_deploy/apiserver/__main__.py(+7 -2)📄 Description
At the moment host and port for the apiserver are hardcoded in the entrypoint
__main__.pyand the only alternative to customize them is to invoke uvicorn manually.With this PR host and port can be set from env vars like this:
LLAMA_DEPLOY_APISERVER_PORT=8080 LLAMA_DEPLOY_APISERVER_HOST=localhost python -m llama_deploy.apiserverUseful for customizing the LlamaDeploy docker image with less code.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.