Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm a beginner at this, but based on the flask, nginx, and uwsgi documentation and tutorials I've found, the standard seems to be to use nginx to pass configuration variables to uwsgi.

Why is this preferable to setting the configuration variables in an ini file in /etc/uwsgi/myapp.ini ? It seems weird to me to tie in uwsgi to nginx when there is a pretty simple way to separate everything.

share|improve this question

1 Answer 1

I think what you are referring to are CGI/WSGI vars. They are the only thing required from the nginx side. All of the other setup go in uWSGI specific configuration. There is the possibility to load WSGI apps passing their name from nginx, but it is far from being "the standard" (and i strongly discourage such kind of setup)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.