Vaadin Proxy with nginx

VaadinApp http://localhost:8080/app

    location /app {
        proxy_http_version 1.1;
        proxy_pass http://localhost:8080/app;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header X-Forwarded-Server $host;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_cookie_path /app/ /;
        proxy_redirect off;
        proxy_set_header Host $host;
        
       proxy_set_header Upgrade $http_upgrade;
       proxy_set_header Connection $connection_upgrade;
       proxy_buffering off;
       proxy_ignore_client_abort off;
       proxy_read_timeout 84600s;
       proxy_send_timeout 84600s;
       break;
   }