httpStatic behind nginx-proxy

I've set up node-red to behind a nginx-proxy and have a hard time to reach the httpStatic content. If i connect to localhost:1880/test.png (test.png is within httpStatic folder) it works fine. But when i try to use the same file in template node as such:

<div> <button onclick="window.location.href = "google.com"><img src="/test.png"></button></div>

I only get 404 not in console.

This is snippet rom my node-red settings.js:

                                                                                   
httpAdminRoot: '/admin',                                                                                                                                                                                                                                                                                                                               
httpNodeRoot: '/node-red',                                                                                                                                                                                                                      
//httpRoot: '/node-red',
httpStatic: '/home/antsve/node-red', 

and this is the nginx.settings for my host:


                                                                                                                       
location /node-red {
              proxy_pass http://127.0.0.1:1881/node-red;                                                                              
              proxy_http_version 1.1;                                                                                                 
              proxy_set_header Upgrade $http_upgrade;                                                                                 
              proxy_set_header Connection "upgrade";                                                                                  
              proxy_set_header X-Forwarded-Host $host:server_port;                                                                    
              proxy_set_header X-Forwarded-Server $host;                                                                                 
              proxy_set_header X-Forwarded-for $proxy_add_x_forwarded_for;
}

location /admin {                       
              proxy_pass http://127.0.0.1:1881/admin;                                                                                 
              proxy_http_version 1.1;                                                                                                 
              proxy_set_header Upgrade $http_upgrade;                                                                                 
              proxy_set_header Connection "upgrade"; 
}

location /static {
              proxy_pass http://127.0.0.1:1881;
              proxy_set_header X-Forwarded-Host $host:server_port;
              proxy_set_header X-Forvarded-Server $host;
              proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
 

anyone have any suggestions to what im doing wrong?

Looks like your static resources would be accessible from http://youraddress/static/.... according to the config you've shown.

<img src="http://youraddress/static/test.png">