Starting at line 85 you can see the issue. That shouldn't be there.
} [root@server ~]# sudo vi /etc/nginx/nginx.conf