Reverse Proxy NGINX server to home Assistant io error

Hello,
I can connect and log into home assistant on my local network @ 10.254.254.6:8123/

When I setup my NGINX reverse proxy server to forward data to my home assistant
NSGINX server ip = 10.254.254.6

I am receiving this error after attempting to login
Unable to connect to Home Assistant.

I have searched and tried every post I can find for days this is my NSGINX config file.

server {
listen 80;
location / {
proxy_pass https://10.254.254.6:8123/;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
}
}

As I stated if I connect directly to Home assistant io it all works.
but when I try to route through NGINX I get the error.
Any help is appreciated I am hosting multiple sites and Need NGINX to work because I only have one public address
Thank You,
Shawn

NGINX Server Version : nginx/1.14.0 (Ubuntu)
IP of server 10.254.254.8

HOME ASSISTANT Version : Home Assistant 0.84.6
IP of server 10.254.254.6

NGINX server had config error reinstalled from scratch by
reinstalling ubuntu server 18.04 LTS then
installing NGINX with
$ sudo apt-get install nginx nginx-extras
$ sudo apt-get update
$ sudo apt-get upgrade
then checked server ip to see if successful config page showed up
then I removed that config
sudo unlink /etc/nginx/sites-enabled/default

then created a reverse-Proxy.conf in
/etc/nginx/sites-enabled/reverse-proxy.conf

server {
listen 80;
location / {
proxy_pass https://10.254.254.6:8123/;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
}
}

then ran
$ sudo nginx -t
that confirmed config was ok
then
$ sudo service nginx restart

and then everything worked.