forked from comcc/PaddlePaddle.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdjango_nginx.conf
More file actions
25 lines (23 loc) · 747 Bytes
/
django_nginx.conf
File metadata and controls
25 lines (23 loc) · 747 Bytes
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
server {
listen 8000;
server_name "paddlepaddle.org";
location = /favicon.ico { access_log off; log_not_found off; }
gzip on;
gzip_comp_level 2;
gzip_proxied any;
gzip_types text/plain text/html text/css application/x-javascript application/javascript text/xml application/xml application/xml+rss text/javascript image/png image/jpeg image/jpg;
location ^~ /static/ {
root /var/www/portal;
}
location ^~ /static/indexes {
alias /var/pages/indexes/indexes;
}
location ~ ^.*\.((?!(htm|html|/)).)+$ {
root /var/pages;
}
location / {
include proxy_params;
proxy_read_timeout 300s;
proxy_pass http://unix:/var/www/portal/django_app.sock;
}
}