Skip to content

Feature request: allow configuring download URL order/preference in config.php #721

@PatriceVigier

Description

@PatriceVigier

Hello,

I would like to suggest a small but useful improvement to the updater.

Currently, when downloading a Nextcloud update, the updater tries download URLs in the order provided by the update server — GitHub releases first, then download.nextcloud.com as fallback. If the first URL is unreachable (e.g. GitHub is blocked or rate-limiting a server IP), the updater waits for the full curl timeout (~2 minutes) before failing entirely, without attempting the next URL.

Suggested improvement

Add a config.php option to either:

  • define a preferred download URL directly, or
  • reverse the URL priority order

Something like:

'updater.download.url' => 'https://download.nextcloud.com/server/releases/',

This would allow server administrators to force the use of a specific mirror without having to patch updater.phar or index.php manually after every update.

Context

The downloadUpdate() method already supports a $url parameter when called from CLI (--url flag), but this is not exposed as a config.php option, and it is not available at all when using the web updater (index.php).

Workaround currently used

Patching getDownloadURLs() in both updater.phar and index.php to call array_reverse() on the returned URL list — but this patch is lost after every Nextcloud update.

Thank you for considering this improvement.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions