add_header Front-End-Https on; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; <-- when using websockets