Fix WebDAV 504 by using internal Nextcloud URL
This commit is contained in:
@@ -62,8 +62,8 @@ func GenerateSecurePassword(length int) (string, error) {
|
|||||||
|
|
||||||
// NewUserWebDAVClient creates a WebDAV client for a specific user
|
// NewUserWebDAVClient creates a WebDAV client for a specific user
|
||||||
func NewUserWebDAVClient(nextcloudBaseURL, username, password string) *WebDAVClient {
|
func NewUserWebDAVClient(nextcloudBaseURL, username, password string) *WebDAVClient {
|
||||||
// Remove any path from base URL, we need just the scheme://host:port
|
// Use internal Nextcloud URL to bypass Traefik timeouts
|
||||||
baseURL := strings.Split(nextcloudBaseURL, "/remote.php")[0]
|
baseURL := "http://nextcloud"
|
||||||
// Build the full WebDAV URL for this user
|
// Build the full WebDAV URL for this user
|
||||||
fullURL := fmt.Sprintf("%s/remote.php/dav/files/%s", baseURL, username)
|
fullURL := fmt.Sprintf("%s/remote.php/dav/files/%s", baseURL, username)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user