server {
        listen 80 default_server;
        listen [::]:80 default_server;

        root /var/www/html/diagnostic;

        index index.html index.htm index.nginx-debian.html;

        server_name _;

        proxy_buffering off;
        proxy_request_buffering off;
        proxy_socket_keepalive on;
        proxy_http_version 1.1;
        proxy_read_timeout 1800;

        gzip on;
        gzip_vary on;
        gzip_min_length 1024;
        gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;

        location /rpc/ {
                proxy_pass http://127.0.0.1:5959/;
        }

        location / {
                try_files $uri $uri/ =404;
        }
}