Skip to content

Commit

Permalink
remove proxy url
Browse files Browse the repository at this point in the history
  • Loading branch information
aktech committed Mar 6, 2024
1 parent 380f698 commit 6715b65
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions ragna/core/_document.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ def read(self) -> bytes:
async def get_upload_info(
cls, *, config: Config, user: str, id: uuid.UUID, name: str
) -> tuple[dict[str, Any], DocumentUploadParameters]:
api_url = config.api.proxy_url or config.api.url
url = urljoin(urljoin(api_url, config.api.root_path), "document")
url = urljoin(urljoin(config.api.url, config.api.root_path), "document")
data = {
"token": jwt.encode(
payload={
Expand Down
1 change: 0 additions & 1 deletion ragna/deploy/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ class ApiConfig(ConfigBase):
lambda config: f"sqlite:///{config.local_root}/ragna.db",
)
root_path: str = ""
proxy_url: str = ""


class UiConfig(ConfigBase):
Expand Down

0 comments on commit 6715b65

Please sign in to comment.