Unable to create a django.conf file for nginx

I am trying to deploy my django app on aws ec2 and i created a django.conf file for nginx this is my django.conf file

server{

        listen 80;
        server_name 15.206.160.34;


        location / {

                include proxy_params;
                proxy_pass http://unix:/home/ubuntu/{project}/app.sock;

        }

}

but when i try to run the command sudo nginx -t i get this error

2025/02/27 10:40:17 [emerg] 15034#15034: directive "proxy_pass" is not terminated by ";" in /etc/nginx/sites-enabled/django.conf:10
nginx: configuration file /etc/nginx/nginx.conf test failed

How do i fix this, please help.

Вернуться на верх