On going 502 error no idea why

I made some changes to make sure I am not using gitlab nginx but my own server and nginx and get 502 bad gateway error still.

I edited rb file as follows

external_url 'http://gitlab.adamprocter.co.uk:8081'
web_server['external_users'] = ['nginx']
nginx['enable'] = false
unicorn['enable'] = true

And my custom nginx as this

upstream gitlab {
    server unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket;
}

server {
    listen 217.147.85.86:8081 default_server;
    listen [::]:8081 default_server ipv6only=on;

    root /usr/share/nginx/html;
    index index.html index.htm;
    server_name gitlab.adamprocter.co.uk;

    location / {
       proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_set_header Host $http_host;
       proxy_redirect off;
       proxy_pass http://gitlab;
    }
}

But I get error

2016/04/22 06:07:31 [error] 1826#0: *34384 connect() to unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket failed (111: Connection refused) while connecting to upstream, client: 86.137.111.86, server: gitlab.adamprocter.co.uk, request: "GET / HTTP/1.1", upstream: "http://unix:/var/opt/gitlab/gitlab-rails/sockets/gitlab.socket:/", host: “gitlab.adamprocter.co.uk:8081"