forked from entando/app-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnginx.conf
34 lines (29 loc) · 822 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
worker_processes 1;
events {
worker_connections 1024;
}
http {
gzip on;
gzip_disable "msie6";
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain image/svg+xml image/gif image/jpeg image/png application/font-woff text/css application/javascript application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
include mime.types;
sendfile on;
server {
root /opt/app-root/src;
index index.html;
server_name _;
listen 8081;
location /app-builder/ {
try_files $uri $uri/ /app-builder/index.html;
}
location ~ /index.html {
add_header Cache-control no-cache;
expires 1s;
}
}
}