Trouble connecting from client

On debian 10 and trying to login to nextcloud from nextcloud-desktop and it hangs on the granting access portion of the login. I can login from a browser on the same device, and I can login through nexcloud-desktop from a machine on the local network running arch linux.

Here is the relevant section of config.php

  'trusted_domains' =>
  array (
    0 => '<myhostname>',
    1 => '',
  'datadirectory' => '/var/www/html/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '',
  #'overwrite.cli.url' => '',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,

I found a post about setting overwritehost to https and http, but then it got stuck at the login section (not even at granting access). I haven’t tried using the access token because I had trouble finding where I can generate that.