From 26fa1712ec9e35968664aa6282b61d66480bb061 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Sun, 25 Jan 2026 16:23:18 +0100 Subject: [PATCH] Fix WebDAV 504 by using internal Nextcloud URL --- go_cloud/internal/storage/nextcloud.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go_cloud/internal/storage/nextcloud.go b/go_cloud/internal/storage/nextcloud.go index c025042..89088f9 100644 --- a/go_cloud/internal/storage/nextcloud.go +++ b/go_cloud/internal/storage/nextcloud.go @@ -62,8 +62,8 @@ func GenerateSecurePassword(length int) (string, error) { // NewUserWebDAVClient creates a WebDAV client for a specific user func NewUserWebDAVClient(nextcloudBaseURL, username, password string) *WebDAVClient { - // Remove any path from base URL, we need just the scheme://host:port - baseURL := strings.Split(nextcloudBaseURL, "/remote.php")[0] + // Use internal Nextcloud URL to bypass Traefik timeouts + baseURL := "http://nextcloud" // Build the full WebDAV URL for this user fullURL := fmt.Sprintf("%s/remote.php/dav/files/%s", baseURL, username)