Create project error when using nginx proxy

Hello,I use nginx and php7.0 to run kanboard, and it works OK,but if I use nginx proxy it seems some problems.Here is my nginx conf, the port 4000 works OK,but 80 doesn’t.and throws some errors as follows

server {
        listen 80 ;
        location / {
            proxy_set_header  X-Forwarded-For $remote_addr;
            proxy_set_header  Host $host;
            proxy_pass        http://localhost:4000;

        }
}

server {
        listen 4000;
        root /var/www/kanboard;
        index index.php;
        location / {
            try_files $uri $uri/ /index.php?$query_string;
        }

        location ~ \.php$ {
                fastcgi_split_path_info ^(.+\.php)(/.+)$;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                fastcgi_pass unix:/run/php/php7.0-fpm.sock;
                fastcgi_index index.php;
                include fastcgi_params;
        }
}