adapt the wsgi to uwsgi and nginx