[PR #440] [MERGED] feat: make apiserver host and port configurable via env vars #465

Closed
opened 2026-02-16 01:17:28 -05:00 by yindo · 0 comments
Owner

📋 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: mainHead: massi/apiserver-config


📝 Commits (1)

  • d0d84a3 fix: 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__.py and 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.apiserver

Useful 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.

## 📋 Pull Request Information **Original PR:** https://github.com/run-llama/llama_deploy/pull/440 **Author:** [@masci](https://github.com/masci) **Created:** 1/25/2025 **Status:** ✅ Merged **Merged:** 1/25/2025 **Merged by:** [@masci](https://github.com/masci) **Base:** `main` ← **Head:** `massi/apiserver-config` --- ### 📝 Commits (1) - [`d0d84a3`](https://github.com/run-llama/llama_deploy/commit/d0d84a3c465de795363e44340ab5c328df7385ef) fix: make apiserver host and port configurable via env vars ### 📊 Changes **2 files changed** (+37 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `e2e_tests/apiserver/test_service_entrypoint.py` (+30 -0) 📝 `llama_deploy/apiserver/__main__.py` (+7 -2) </details> ### 📄 Description At the moment host and port for the apiserver are hardcoded in the entrypoint `__main__.py` and 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.apiserver` Useful for customizing the LlamaDeploy docker image with less code. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:17:28 -05:00
yindo closed this issue 2026-02-16 01:17:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: run-llama/llama_deploy#465