sync update from LAN repo (source dhk-1 @ 3b1ec5b4)
This commit is contained in:
1 parent
da6521b6cb
commit
264e2200d6
995 files changed
+148105
-13399
No files matched your search
+8
-4
@@ -17,7 +17,7 @@ import secrets
|
||||
import stat
|
||||
from pathlib import Path
|
||||
|
||||
from deerflow.config import get_app_config, get_paths
|
||||
from deerflow.config import get_paths
|
||||
from deerflow.config.paths import Paths
|
||||
from deerflow.config.runtime_paths import runtime_home
|
||||
from deerflow.runtime.thread_paths import remember_thread_owner, resolve_path_user_id
|
||||
@@ -125,10 +125,14 @@ def verify_html_image_token(token: str) -> tuple[str, str, str]:
|
||||
def html_images_base_url(runtime_base: str | None = None) -> str:
|
||||
"""Browser-reachable prefix for signed HTML images.
|
||||
|
||||
Derived from ``html_runtime.base_url`` so intranet deployments keep the
|
||||
same Gateway origin / reverse-proxy prefix as G6/ECharts.
|
||||
Derived from the HTML runtime address saved in the settings dialog, so
|
||||
intranet deployments keep the same Gateway origin as G6/ECharts.
|
||||
"""
|
||||
base = (runtime_base if runtime_base is not None else get_app_config().html_runtime.base_url).rstrip("/")
|
||||
if runtime_base is None:
|
||||
from deerflow.html_runtime.addresses import html_runtime_base_url
|
||||
|
||||
runtime_base = html_runtime_base_url()
|
||||
base = runtime_base.rstrip("/")
|
||||
if base.endswith("/html-runtime"):
|
||||
return f"{base[: -len('html-runtime')]}html-images"
|
||||
parent, _sep, _name = base.rpartition("/")
|
||||
|
||||
Reference in new issue
Block a user