keystonejs styles and admin pages not loaded

Hi , I have a nodejs application based on keystone. NodeJs and MongoDB installation run successfully but i am getting this styles error when trying to open the app

Errors /styles/themes/Bootstrap.min.css Request Method: GET Status Code: 404 Not Found

t/styles/site.css Request Method: GET Status Code: 404 Not Found

NginX configuration

    location / {
    proxy_redirect off;
    proxy_set_header X-NginX-Proxy true;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_pass http://localhost:8080;
    proxy_http_version 1.1;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection 'upgrade';
    proxy_set_header Host $host;
    proxy_cache_bypass $http_upgrade;
            # First attempt to serve request as file, then
            # as directory, then fall back to displaying a 404.
            try_files $uri $uri/ =404;

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hey! old question but maybe I can help anyone else with the same issue I personally use these 4 headers + proxy_pass and it works. You are missing the last one:

proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;

I am not seeing anything wrong in your configuration that would prevent these URLs from being loaded. Are the referenced css files present in your filesystem?