Upgrade to 14.x is not working at all: too many redirects after login screen?

Nextcloud version 14.0.1
Operating system and version freebsd 10.4
nginx version: nginx/1.14.0
PHP version 7.1

The issue you are facing:

Upgraded to version 14 from 13 via the FreeBSD ports system. Lots of trouble since. Once i log in, I get an error page with a message about too many redirects. I have commented out all the redirect/rewrite code. I still see cloud.paulbeard.org in the logs and I haven't found where that is coming from. But it all used to work 

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

Steps to replicate it:

  1. Login…
  2. Boom
  3. Sadness

The output of your Nextcloud log in Admin > Logging:

PASTE HERE

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

        location /nextcloud {
        try_files $uri $uri/ /nextcloud/index.php;
        index index.html index.php;
        #rewrite ^   https://cloud.paulbeard.org/$request_uri? permanent;
#       access_log off;
        }