-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnginx.conf
54 lines (41 loc) · 1.17 KB
/
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
47
48
49
50
51
52
53
54
user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
sendfile on;
client_max_body_size 5M;
client_body_buffer_size 5M;
gzip on;
gzip_comp_level 2;
gzip_types text/plain text/css text/javascript application/javascript application/x-javascript application/xml application/x-httpd-php image/jpeg image/gif image/png;
gzip_vary on;
keepalive_timeout 300;
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name 127.0.0.1;
root /www/blog/templates;
location / {
uwsgi_pass dblog_server:8001;
include /etc/nginx/uwsgi_params;
}
location /static {
alias /www/blog/static;
}
location /media {
alias /www/blog/static/media;
}
location /robots.txt {
alias /www/blog/static/robots.txt;
}
location /sitemap.xml {
alias /www/blog/static/sitemap.xml;
}
}
}