summaryrefslogtreecommitdiffstats
path: root/nginx.cfg
diff options
context:
space:
mode:
authorNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-14 22:47:35 +0200
committerNico von Geyso <Nico.Geyso@FU-Berlin.de>2012-08-14 22:51:49 +0200
commitf1296adad2be6ead46cf380eeeb2f4c8684cc97a (patch)
tree3f13c0d6b34c39ecd04c48f0d9ac7717c5a2129c /nginx.cfg
parent4486c6d1a591ad08e47f1d14aa381fb1fe2037a4 (diff)
downloadklausuren-f1296adad2be6ead46cf380eeeb2f4c8684cc97a.tar.gz
klausuren-f1296adad2be6ead46cf380eeeb2f4c8684cc97a.tar.bz2
klausuren-f1296adad2be6ead46cf380eeeb2f4c8684cc97a.zip
added README, requirements.txt and sample nginx config
Diffstat (limited to 'nginx.cfg')
-rw-r--r--nginx.cfg36
1 files changed, 36 insertions, 0 deletions
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;
+ }
+}