Nextcloud downloads slow outside of network

Hey everyone,

I’m a bit new to all of this and still learning so currently I am stumbling around in the dark on this issue. When I am outside my network from either a phone or computer I noticed that when I download from my Nextcloud server at home at most I’ve seen download speeds of 1,300kbps. I have an idea that it might be my php settings, but I do not know where to proceed from there. Or is Nextcloud not using enough ram? If anyone can guide me on where to proceed from here It’d be very much appreciated!

iperf
speedtest

Nextcloud version: 17.0.2
Operating system and version: Ubuntu server 18.04.3
Apache or nginx version: Server version: Apache/2.3.29
PHP version: PHP 7.2.24
CPU: Intel® Xeon® CPU E3-1225 v5 @ 3.30GHz Intel® Xeon® CPU E3-1225 v5 @ 3.30GHz Intel® Xeon® CPU E3-1225 v5 @ 3.30GHz Intel® Xeon® CPU E3-1225 v5 @ 3.30GHz (4 4 4 4 cores)
Memory: 7.7 GB

Nextcloud conf file:

$CONFIG = array (
  'trusted_domains' =>
  array (
    0 => '10.0.0.8',
    1 => 'xx.xx.xx.xx',
  ),
  'datadirectory' => '/storage',
  'dbtype' => 'mysql',
  'version' => '17.0.2.1',
  'overwrite.cli.url' => 'http://10.0.0.8',
  'dbname' => 'xxx',
  'dbhost' => 'xxx',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'xxx',
  'dbpassword' => 'xxx',
  'installed' => true,
  'log_type' => 'file',
  'logfile' => '/var/log/nextcloud.log',
  'logfilemode' => 416,
  'loglevel' => '0',
  'logtimezone' => 'EST',
  'mysql.utf8mb4' => true,
  'maintenance' => false,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'mail_from_address' => 'xxx',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_domain' => 'zoho.com',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.zoho.com',
  'mail_smtpport' => '465',
  'mail_smtpname' => 'xxx',
  'mail_smtppassword' => 'xxx',
);

Are you sure you didn’t mix up numbers?

Looking at your speedtest screenshot you reach 12.27 megabits on outgoing transfers which is roughly 1.3 megabytes (or 1300 kilobytes).

Well… when you put it that way… Yeah I suppose I mixed up the numbers, haha how embarrassing, but that’s good news… in a way. Correct me if I am wrong, but that just means that my ISP is responsible and that if I want speeds faster than 12mbps then I should find a better ISP. Right?

If that’s all then I’m glad that I had asked first before making the mistake of making changes to my configuration files.

Thanks for the help!

I don’t what kind of connection you have, downstream bandwidth seems to be good, in relation to that upstream seams underpowered, but thats just my opinion.
You may ask your ISP if they have offerings with higher upstream bandwidth.