Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Improve S3/WebDAV endpoint setting https://ld246.com/article/1736518497899

Daniel632cf38c5228
diff --git a/app/src/config/repos.ts b/app/src/config/repos.ts
index 700b5c83db..9a8dc11762 100644
--- a/app/src/config/repos.ts
+++ b/app/src/config/repos.ts
@@ -318,6 +318,7 @@ const bindProviderEvent = () => {
(providerPanelElement.querySelector("#timeout") as HTMLInputElement).value = timeout.toString();
let endpoint = (providerPanelElement.querySelector("#endpoint") as HTMLInputElement).value;
endpoint = endpoint.trim().replace("http://http(s)://", "https://");
+ endpoint = endpoint.replace("http(s)://", "https://");
if (!endpoint.startsWith("http")) {
endpoint = "http://" + endpoint;
}
@@ -353,6 +354,7 @@ const bindProviderEvent = () => {
(providerPanelElement.querySelector("#timeout") as HTMLInputElement).value = timeout.toString();
let endpoint = (providerPanelElement.querySelector("#endpoint") as HTMLInputElement).value;
endpoint = endpoint.trim().replace("http://http(s)://", "https://");
+ endpoint = endpoint.replace("http(s)://", "https://");
if (!endpoint.startsWith("http")) {
endpoint = "http://" + endpoint;
}