I am deploying the django app to digitalocean my ip address is not working after the sudo vim /etc/nginx/sites-available/lok
in nginx .I added to the my nginx is as follows
upstream app_server {
server unix:/home/urban/urban.new/run/gunicorn.sock
fail_timeout=0;
}
server {
listen 80;
# add here the ip address of your server
# or a domain pointing to that ip (like example.com or www.example.com)
server_name 139.59.36.32;
keepalive_timeout 5;
client_max_body_size 4G;
access_log /home/urban/urban.new/logs/nginx-access.log;
error_log /home/urban/urban.new/logs/nginx-error.log;
location /static/ {
alias /home/urban/lok/templates/style/static/;
}
# checks for static file, if not found proxy to app
location / {
try_files $uri @proxy_to_app;
}
location @proxy_to_app {
proxy_set_header X-Forwarded-For . $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_redirect off;
proxy_pass http://app_server;
}
}
but my ip address is not working.Help me to figure out the problem.