forked from xchem/fragalysis-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdjango_nginx.conf
46 lines (44 loc) · 962 Bytes
/
django_nginx.conf
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
server {
client_max_body_size 0;
listen 80;
server_name ~^(.+)$;
# L2 - Test
include proxy_params;
proxy_redirect off;
location = /favicon.ico { access_log off; log_not_found off; }
location /static/ {
root /code;
}
location /pdbs/ {
alias /code/media/pdbs/;
internal;
}
location /bound/ {
alias /code/media/bound/;
internal;
}
location /mtzs/ {
alias /code/media/mtzs/;
internal;
}
location /maps/ {
alias /code/media/maps/;
internal;
}
location /compound_sets/ {
alias /code/media/compound_sets/;
internal;
}
location /metadata/ {
alias /code/media/metadata/;
internal;
}
location /targets/ {
alias /code/media/targets/;
internal;
}
location / {
proxy_pass http://unix:/code/django_app.sock;
uwsgi_read_timeout 1000s;
}
}