Skip to content

Commit ebe788a

Browse files
committedJan 24, 2016
Add nginx config to docs
1 parent 2fdd0da commit ebe788a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
 

‎README.md

+11
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ Setting up the server
8585
$ uwsgi -s /tmp/serverlist.sock --plugin python -w server:app --enable-threads
8686
$ # Then configure according to http://flask.pocoo.org/docs/deploying/uwsgi/
8787

88+
7. (optional) Configure the proxy server, if any. You should make the server
89+
load static files directly from the static directory. Also, `/list`
90+
should be served from `list.json`. Example for nginx:
91+
92+
root /path/to/server/static;
93+
rewrite ^/list$ /list.json;
94+
try_files $uri @uwsgi;
95+
location @uwsgi {
96+
uwsgi_pass ...;
97+
}
98+
8899
License
89100
-------
90101

0 commit comments

Comments
 (0)
Please sign in to comment.