docling-project / docling-project/docling-serve

How to define `root_path` ?

Open
#286 8 comments 0 reactions 1 assignee Assigned to @SantanaTiago View on GitHub
Dominant language
Python
Stars
1.8k
Forks
344
Avg merge
6d 11h
Merged PRs (30d)
8

Description

Hi
I'd like to know how to properly define the `root_path` for this project.

Since this project uses FastAPI, I thought I could set it using `UVICORN_ROOT_PATH`. However, when I set `UVICORN_ROOT_PATH="/docling"`, accessing `http://localhost:5001/docling` resulted in a failed attempt to access `http://localhost:5001/docling/docling`.

Accessing `http://localhost:5001/` also redirected me to `http://localhost:5001/docling`.

Could you please provide a solution for this issue?

Thank you for your help.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.