我想使用 Nginx 为前端 Angular 2 应用程序提供服务。我使用 Gunicorn 作为 Nginx 和 Flask 之间的媒介。我想部署此 Web 应用程序进行生产。正确的应用程序结构应该是什么?另外,nginx 服务器块配置是什么?我托管在基于 Linux 的数字海洋 Droplet(Ubuntu 16.04)上。我引用了以下链接,但他们似乎也使用 Flask 来为前端提供服务。
https://www.digitalocean.com/community/tutorials/how-to-struct-large-flask-applications
https://www.digitalocean.com/community/tutorials/how-to-serve-flask-applications-with -gunicorn-and-nginx-on-ubuntu-16-04