-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathDRP_nginx
More file actions
executable file
·72 lines (59 loc) · 2.16 KB
/
DRP_nginx
File metadata and controls
executable file
·72 lines (59 loc) · 2.16 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
server {
listen 80;
# For https
# listen 80 ssl;
listen 8000;
server_name darkreactions.haverford.edu;
server_name localhost;
# For https
# ssl_certificate /path/to/certificate;
# ssl_certificate_key /path/to/key;
charset utf-8;
client_max_body_size 75M;
access_log /home/drp/web/darkreactions.haverford.edu/logs/access.log;
error_log /home/drp/web/darkreactions.haverford.edu/logs/error.log;
location /favicon.ico {
alias /home/drp/web/darkreactions.haverford.edu/app/DRP/static/favicon.ico;
}
location /documentation/ {
alias /home/drp/web/darkreactions.haverford.edu/app/DRP/documentation/;
index index.html;
}
location /media/ {
alias /home/drp/web/darkreactions.haverford.edu/app/DRP/media/;
if ($query_string) {
expires max;
}
}
location /static/ {
alias /home/drp/web/darkreactions.haverford.edu/app/DRP/static/;
if ($query_string) {
expires max;
}
}
location /sec_media/ {
internal;
alias /home/drp/web/darkreactions.haverford.edu/app/DRP/sec_media/;
}
location / {
include uwsgi_params;
#include /home/drp/web/darkreactions.haverford.edu/uwsgi_params;
#for HTTPS
# uwsgi_param HTTPS $https if_not_empty;
uwsgi_pass 127.0.0.1:3031;
uwsgi_read_timeout 600;
}
# error_page 400 /static/400.html;
# error_page 403 /static/403.html;
# error_page 404 /static/404.html;
# error_page 500 502 503 504 /static/500.html;
gzip on;
gzip_http_version 1.0;
gzip_comp_level 5;
gzip_proxied any;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript;
gzip_disable "MSIE [1-6].(?!.*SV1)";
gzip_vary on;
}