summaryrefslogtreecommitdiffstats
path: root/nginx.cfg
diff options
context:
space:
mode:
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;
+ }
+}