summaryrefslogtreecommitdiffstats
path: root/nginx.cfg
blob: d510ef0006ff167555cde34ef835ce28c02e3c83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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 @klausuren;
	}

	location / {
		error_page 403 http://DOMAIN_URL/403;

		#allow 192.168.0.0/16;
		#deny all;
		
		try_files $uri @klausuren;
	}

	location @klausuren {
	    include uwsgi_params;
	    uwsgi_pass unix:/tmp/uwsgi.sock;
	}
}