blob: 38b31df2e61ee3ac0d026536f8b161d32faf84f5 (
plain) (
blame)
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
|
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
gzip on;
server_tokens off;
server {
listen 80;
listen [::]:80;
listen 8000;
listen [::]:8000;
server_name localhost;
location / {
include uwsgi_params;
client_max_body_size 20m;
client_body_timeout 300s;
uwsgi_pass app:9200;
}
# Pass through the static directory
# This should match whatever is in your config file
location /static {
alias /var/www;
}
location /robots.txt {
alias /var/www/static/robots.txt;
}
# Optionally change the log path.
# access_log /var/log/nginx/dispatch.example.com/access.log;
# error_log /var/log/nginx/dispatch.example.com/error.log;
}
include conf.d/*.conf;
}
|