-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
35 lines (30 loc) · 918 Bytes
/
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
server {
listen 80 default_server;
listen [::]:80 default_server;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log crit;
location ~* \.(css|js)$ {
root /var/www/;
access_log off;
expires 21d;
}
location ~* \.(jpg|jpeg|gif|png|svg|eot|ttf|woff|safariextz)$ {
root /var/www/;
expires 7d;
access_log off;
}
location / {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-for $remote_addr;
proxy_set_header Host $host;
proxy_connect_timeout 60;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_redirect off;
proxy_set_header Connection close;
proxy_pass_header Content-Type;
proxy_pass_header Content-Disposition;
proxy_pass_header Content-Length;
}
}