-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
34 lines (30 loc) · 1.06 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
server {
listen 8080;
server_name localhost;
absolute_redirect off;
location / {
gzip on;
gzip_http_version 1.0;
gzip_comp_level 5;
gzip_proxied any;
gzip_min_length 500;
gzip_vary on;
gzip_disable "MSIE [1-6]\.";
gzip_types application/atom+xml application/javascript application/json application/rss+xml
application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml
application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/x-component;
root /usr/share/nginx/html;
index index.html;
try_files $uri $uri/ /index.html =404;
add_header Cache-Control "no-store, no-cache, must-revalidate";
}
location /health {
return 200 'alive';
add_header Content-Type text/plain;
}
location /api/ {
proxy_pass http://api:8001;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}