Closed
Description
Hello am new to nginx proxy manger and soo far i have understood the workflow however in the location section am having a bit of trouble.. am running a django app with gunicorn which only handles python code hence my static files(javaScript & CSS) are not being served..
i want to include them in the location area but every time I do it the host goes offline... if I used an nginx config file traditionally this is what it would look like
server {
listen 80;
server_name YOUR_IP_ADDRESS;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /home/djangoadmin/pyapps/btre_project;
}
location /media/ {
root /home/djangoadmin/pyapps/btre_project;
}
location / {
include proxy_params;
proxy_pass http://unix:/run/gunicorn.sock;
}
}
I want the proxy params , media and static to be included in location but I can't find a way... kindly assist