-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
54 lines (48 loc) · 1.05 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
http {
# ! add actual mime type location; VERY IMPORTANT
include /usr/local/etc/nginx/mime.types;
server {
listen 80 default_server;
index index.html;
# ! add actual root path
root /Users/rei/projects/rgrty-sqltest-vkr/dist;
# ! change to actual domain name
server_name 192.168.1.183;
location / {
try_files $uri $uri/ /index.html;
}
location = /robots.txt {
try_files $uri /robots.txt;
}
location ^~ /api/ {
# ! change this
proxy_pass http://10.10.1.6:9999/sqltest/;
}
location ~* ^.+\.css$ {
default_type text/css;
}
location ~* ^.+\.js$ {
default_type text/javascript;
}
gzip on;
gzip_disable "msie6";
gzip_comp_level 6;
gzip_min_length 1100;
gzip_buffers 16 8k;
gzip_proxied any;
gzip_types
text/plain
text/css
text/js
text/xml
text/javascript
application/javascript
application/json
application/xml
application/rss+xml
image/svg+xml;
}
}
events {
worker_connections 4096; ## Default: 1024
}