Add nginx config to docs

This commit is contained in:
ShadowNinja 2016-01-23 23:36:05 -05:00
parent 2fdd0daa11
commit ebe788a156

View File

@ -85,6 +85,17 @@ Setting up the server
$ uwsgi -s /tmp/serverlist.sock --plugin python -w server:app --enable-threads
$ # Then configure according to http://flask.pocoo.org/docs/deploying/uwsgi/
7. (optional) Configure the proxy server, if any. You should make the server
load static files directly from the static directory. Also, `/list`
should be served from `list.json`. Example for nginx:
root /path/to/server/static;
rewrite ^/list$ /list.json;
try_files $uri @uwsgi;
location @uwsgi {
uwsgi_pass ...;
}
License
-------