8.13.0 - fails to reconfigure properly with different hostname/URL

My gitlab server auto updated to 8.13.0 and ran the reconfigure. It doesn’t rebuild the nginx config properly and there is a “server ;” in the nginx-status.conf file.
So I get an error every second :
2016/10/24 09:58:32 [emerg] 24362#0: invalid number of arguments in “server_name” directive in /var/opt/gitlab/nginx/conf/nginx-status.conf:3

Adding the external_url’s hostname to the server line stops the error, however : trying gitlab again gives me a “Gitlab is not responding” 502 error page.
The reconfigure log from the upgrade says :

 [root@gitlab reconfigure]# more 1477295338.log
 # Logfile created on 2016-10-24 07:48:58 +0000 by logger.rb/54362
 [2016-10-24T07:48:58+00:00] INFO: Started chef-zero at chefzero://localhost:8889 with repository at /opt/gitlab/embedded
One version per cookbook

[2016-10-24T07:48:58+00:00] INFO: Forking chef instance to converge...
[2016-10-24T07:48:58+00:00] INFO: *** Chef 12.12.15 ***
[2016-10-24T07:48:58+00:00] INFO: Platform: x86_64-linux
[2016-10-24T07:48:58+00:00] INFO: Chef-client pid: 22994
[2016-10-24T07:48:59+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found: chefzero://localhost:8889/nodes/gitlab.sure.vine
[2016-10-24T07:48:59+00:00] INFO: Setting the run_list to ["recipe[gitlab]"] from CLI options
[2016-10-24T07:48:59+00:00] INFO: Run List is [recipe[gitlab]]
[2016-10-24T07:48:59+00:00] INFO: Run List expands to [gitlab]
[2016-10-24T07:48:59+00:00] INFO: Starting Chef Run for gitlab.sure.vine

The rest of the log looks OK apart from that 404 error. That references the hostname, not the external URL. Is that likely to be a problem?? (I mean that : hostname = gitlab.sure.vine, external URL=git.surevine.com)

Any ideas?? I can probably be happy with just bodging the status config for now, if that’s all that is needed. But I don’t know if the 502 when I do bodge it is caused by other things not working or if it’s just because I didn’t bodge it correctly.

OK, I bodged with the hostname instead of the external_url’s hostname and it seems to be working. Until I do a reconfigure, then it removes the hostname again…