It seems my site has to be all flask, is there a configuration setting in nginx that will allow me to just throw a temp page up, and is not routed to flask?
Like someone that has no flask knowledge, they just want to put up a simple page. Yes, it can be all done under flask, just wondering does it have to be? Is it all or none? Everything routes to flask now.
Summary: Can i have a flask and a non flask site running at the same time? Or maybe I can configure flask to point to a sandbox directory?
Pondering this. thanks
Latest site-available changes - not finding this directory:
If I understood your question, you want nginx to handle some resources directly.
You need a static route, using root, like
location /static {
root /home/ubuntu/example/example;
}
and let the others locations be handled by the proxy.
I have a nginx/uwsgi/flask configuration tutorial but unfortunately its only in spanish.
Got it!
No editing needed. Just put anything you want to serve in static, and have that in the url.
Understanding now static files can be anything.
Guess was not clear on what "static" meant. And can edit that in the config file if want to have a clean url.