I am not an expert in nginx, but here's a config that I know is working:
server {
listen 443 ssl http2;
ssl_certificate /etc/ssl/certs/xxxxx.pem;
ssl_certificate_key /etc/ssl/private/xxxxx.pem;
server_name xxxxx nx.local;
root /var/www/html;
location = / {
return 301 /nxmc-light.app;
}
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Ssl on;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Frame-Options SAMEORIGIN;
proxy_pass http://10.10.10.10:8080/;
}
}