官术网_书友最值得收藏!

  • NGINX Cookbook
  • Tim Butler
  • 116字
  • 2021-07-03 00:04:30

How it works...

The Flask applications are so simple that they don't come with all of the boilerplate WSGI configurations such as Django and other frameworks. The good news is that the flexibility of uWSGI means it's very easy to configure.

In order for uWSGI to know what file to call, which we do via the module configuration entry, set it to demoapp. Those familiar with Python will know that this translates into loading demoapp.py.

Secondly, the callable configuration specifies the default WSGI callable name, which in our demoapp.py is set to application.

Lastly, we have a very simple NGINX server block directive. This simply pushes all calls to our Flask application using the uWSGI socket.

主站蜘蛛池模板: 濉溪县| 阿尔山市| 连南| 宁波市| 扬中市| 革吉县| 察雅县| 沐川县| 鸡西市| 水城县| 正镶白旗| 若尔盖县| 肥西县| 黔西县| 大姚县| 新民市| 从化市| 崇仁县| 崇信县| 政和县| 静安区| 屏山县| 高尔夫| 商水县| 祥云县| 思茅市| 裕民县| 四子王旗| 裕民县| 内黄县| 武胜县| 乃东县| 习水县| 吉首市| 合阳县| 桑植县| 成武县| 龙州县| 留坝县| 大埔县| 荣昌县|