0

server {
        listen 80;
        server_name X.X.X.X; # Has the Public IP address here
        access_log /var/log/nginx-access.log;
        error_log /var/log/nginx-error.log;
        root /home/ubuntu/project/ToDo-application/;
        location /static {
                root /home/ubuntu/ToDo-application/frontend;
        }

        location / {
                include /etc/nginx/mime.types;
                default_type application/octet-stream;
                proxy_pass http://127.0.0.1:8000;
                proxy_set_header Host $host;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        }
}

|

    2

    1

    |
      0

      server {
              listen 80 default_server;
              server_name X.X.X.X; # Has the Public IP address here
              access_log /var/log/nginx-access.log;
              error_log /var/log/nginx-error.log;
              root /home/ubuntu/project/ToDo-application/;
              location /static {
                      root /home/ubuntu/ToDo-application/frontend;
              }
      
              location / {
                      include /etc/nginx/mime.types;
                      default_type application/octet-stream;
                      proxy_pass http://127.0.0.1:8000;
                      proxy_set_header Host $host;
                      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
              }
      }
      

      |