Static files cant see flask server Static files cant see flask server flask flask

Static files cant see flask server


Use nginx proxy:

location / {proxy_set_header Host $host;proxy_set_header X-Real-IP $remote_addr;proxy_pass http://localhost:5000;  }


Try this

    server {         server_name www.yourdomain.com;         location /static {            alias /home/user/path/static;         }         location / {               proxy_pass http://localhost:8000;               include /etc/nginx/proxy_params;               proxy_redirect off;         }     }

Change alias to your path project