Slow Download speeds from Nextcloud Server outside of local network

Nextcloud version (20.0.2):
Operating system and version ( Ubuntu Sever 20.04):
Apache (Apache 2.4.31)
:
PHP version (7.14_:

The issue I am facing:

My issue is that I have very slow download speeds ( between 3-12 Mb/s ) from the nextcloud server when accessing from WAN, but I have good upload speeds to it. At LAN I have great download and upload speeds with no problem.

I have run a speedtest from speedtest-cli and got about 85Mb/s at download and 90Mb/s at upload.

When I tried to download files from the server on WAN using only Apache I got about 70Mb/s so the problem is something in the nextcloud config.

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Download file from nextcloud server on WAN

The output of your Nextcloud log in Admin > Logging:
No info in nextcloud log

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):


<?php
$CONFIG = array (
  'instanceid' => '***************************',
  'passwordsalt' => '***************************',
  'secret' => '***************************',
  'trusted_domains' =>
  array (
    1 => 'domain.com',
    2 => 'localhost',
    3 => '***************************',
    4 => 'www.domain.com',
  ),
  'datadirectory' => '***************************',
  'dbtype' => 'mysql',
  'version' => '20.0.2.2',
  'overwrite.cli.url' => 'https://domain.com/nextcloud',
  'dbname' => '*****',
  'dbhost' => '*****',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '***************************',
  'dbpassword' => '***************************',
  'installed' => true,
  'updater.secret' => '***************************',
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 4,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'overwriteprotocol' => 'https',
);

Hello Melvin,
I think, I’ve the same issue as you. Did you finally find a solution ?