Skip to content

Commit

Permalink
Add nginx config to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadowNinja committed Jan 24, 2016
1 parent 2fdd0da commit ebe788a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Expand Up @@ -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
-------

Expand Down

0 comments on commit ebe788a

Please sign in to comment.