Rename CF_ORCH_URL to GPU_SERVER_URL for self-hoster clarity #9
Loading…
Reference in a new issue
No description provided.
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?
Summary
Follow the
GPU_SERVER_URLconvention established in kiwi (see kiwi commit on config.py).CF_ORCH_URLis the internal cf-orch env var name but is not self-explanatory for a local-first user setting up their own GPU rig. Rename the user-facing env var toGPU_SERVER_URL, keepingCF_ORCH_URLas a backward-compat alias.Pattern (from kiwi
app/core/config.py)Then after
settings = Settings():This propagates the resolved URL back into
os.environ["CF_ORCH_URL"]so all existing service-layer callers (os.environ.get("CF_ORCH_URL")) continue to work without changes.Files to update
app/core/config.py(or equivalent settings file): addGPU_SERVER_URLwith priority chain above.env.example: replaceCF_ORCH_URL=...example withGPU_SERVER_URL=...; note CF_ORCH_URL is still honouredCF_ORCH_URL: addGPU_SERVER_URLas the documented name (keepCF_ORCH_URLfor compat)Notes
CF_ORCH_URLmust remain supported (it is read directly by cf-core internals and CFOrchClient)https://orch.circuitforge.techwhenCF_LICENSE_KEYis present