I think you should define SERVER_NAME variable in flask config: http://flask.pocoo.org/docs/0.10/config/
After that domain name should be accessible by request.url_root or request.headers['Host']
request.url_root
request.headers['Host']
You must add the line
include uwsgi_params;
in your nginx config.uwsgi_params file