From ebe788a1561cea636ca29f918d15b7d6ba70bdb8 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Sat, 23 Jan 2016 23:36:05 -0500 Subject: [PATCH] Add nginx config to docs --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 0799ce0..f211de6 100644 --- a/README.md +++ b/README.md @@ -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 -------