An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Improve S3/WebDAV endpoint setting https://ld246.com/article/1736518497899
Daniel37849aaef03d
diff --git a/app/src/config/repos.ts b/app/src/config/repos.tsindex 53b144695a..5df808bb76 100644--- a/app/src/config/repos.ts+++ b/app/src/config/repos.ts@@ -316,8 +316,13 @@ const bindProviderEvent = () => {concurrentReqs = 16;}(providerPanelElement.querySelector("#timeout") as HTMLInputElement).value = timeout.toString();+ let endpoint = (providerPanelElement.querySelector("#endpoint") as HTMLInputElement).value;+ endpoint = endpoint.replace("http://http(s)://", "http://");+ if (!endpoint.startsWith("http")) {+ endpoint = "http://" + endpoint;+ }const s3 = {- endpoint: (providerPanelElement.querySelector("#endpoint") as HTMLInputElement).value,+ endpoint: endpoint,accessKey: (providerPanelElement.querySelector("#accessKey") as HTMLInputElement).value,secretKey: (providerPanelElement.querySelector("#secretKey") as HTMLInputElement).value,bucket: (providerPanelElement.querySelector("#bucket") as HTMLInputElement).value,@@ -346,8 +351,13 @@ const bindProviderEvent = () => {concurrentReqs = 16;}(providerPanelElement.querySelector("#timeout") as HTMLInputElement).value = timeout.toString();+ let endpoint = (providerPanelElement.querySelector("#endpoint") as HTMLInputElement).value;+ endpoint = endpoint.replace("http://http(s)://", "http://");+ if (!endpoint.startsWith("http")) {+ endpoint = "http://" + endpoint;+ }const webdav = {- endpoint: (providerPanelElement.querySelector("#endpoint") as HTMLInputElement).value,+ endpoint: endpoint,username: (providerPanelElement.querySelector("#username") as HTMLInputElement).value,password: (providerPanelElement.querySelector("#password") as HTMLInputElement).value,skipTlsVerify: (providerPanelElement.querySelector("#webdavSkipTlsVerify") as HTMLInputElement).value === "true",