By default, with flask, your files in /static/ include /static/ in the URLs.
So for example, your flask app would link to /static/file.css. This documentation, therefor, would have nginx looking in /static/static/file.css.
This PR fixes that. I'm pretty sure it's still safe, because while the root directory for serving static content is the app, it limits it to /static URLs. Someone who knows more about Nginx than me might want to double check that, though.
By default, with flask, your files in /static/ include /static/ in the URLs.
So for example, your flask app would link to
/static/file.css
. This documentation, therefor, would have nginx looking in/static/static/file.css
.This PR fixes that. I'm pretty sure it's still safe, because while the root directory for serving static content is the app, it limits it to /static URLs. Someone who knows more about Nginx than me might want to double check that, though.