-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnginx.conf
More file actions
45 lines (35 loc) · 845 Bytes
/
nginx.conf
File metadata and controls
45 lines (35 loc) · 845 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
events {
worker_connections 4096;
multi_accept on;
use epoll;
}
http {
# http context
map $sent_http_content_type $expires {
default off;
text/html epoch;
text/css 1d;
application/javascript 1d;
application/font-woff 1d;
application/font-woff2 1d;
application/x-font-ttf 1d;
~image/ 1d;
~audio/ 1d;
~video/ 1d;
}
upstream web {
server web:8000;
}
server {
listen 80;
location / {
root /var/www/bquest/static;
index index.html;
include /etc/nginx/mime.types;
try_files $uri $uri/ /index.html =404;
}
location /api/ {
proxy_pass http://web/;
}
}
}