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)