From f1296adad2be6ead46cf380eeeb2f4c8684cc97a Mon Sep 17 00:00:00 2001 From: Nico von Geyso Date: Tue, 14 Aug 2012 22:47:35 +0200 Subject: added README, requirements.txt and sample nginx config --- nginx.cfg | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 nginx.cfg (limited to 'nginx.cfg') diff --git a/nginx.cfg b/nginx.cfg new file mode 100644 index 0000000..d2c98b9 --- /dev/null +++ b/nginx.cfg @@ -0,0 +1,36 @@ +server { + listen 80; + server_name DOMAIN_URL; + + client_max_body_size 10m; + + location /static { + root INSTALL_PATH; + } + + location /static/studies/ { + error_page 403 http://DOMAIN_URL/403; + root INSTALL_PATH; + + #allow 192.168.0.0/16; + #deny all; + } + + location /403 { + try_files $uri @fit; + } + + location / { + error_page 403 http://DOMAIN_URL/403; + + #allow 192.168.0.0/16; + #deny all; + + try_files $uri @fit; + } + + location @fit { + include uwsgi_params; + uwsgi_pass unix:/tmp/uwsgi.sock; + } +} -- cgit v1.2.3-1-g7c22