Can I use the uwsgi protocol to call http?

前端 未结 3 1614
自闭症患者
自闭症患者 2020-12-21 16:47

Here\'s a data flow: http <--> nginx <--> uWSGI <--> python webapp

I guess there\'s http2uwsgi transfer in nginx, and uwsgi2http in uWSGI.

What if I

3条回答
  •  执念已碎
    2020-12-21 17:06

    First, consider those questions:

    • On which port is uWSGI running?
    • Is uWSGI running on your or on a remote machine?
    • If it's running on a remote machine, is the port accessible from your computer? (iptables rules might forbid external access)

    If you made sure you have access, you can just call http://hostname:port/path/to/uWSGI for direct API access.

提交回复
热议问题