forked from fledge-iot/fledge-gui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nginx.conf
33 lines (23 loc) · 769 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
http {
# ubuntu
include /etc/nginx/mime.types;
# mac
#include /usr/local/etc/nginx/mime.types;
# windows
# include C:/nginx/conf/mime.types;
server {
# windows, Paths in a configuration file must be specified in UNIX-style using forward slashes.
# root <ABSOLUTE PATH TO dist directory content>;
root dist/;
server_name _;
# Enable static gzip
gzip_static on;
# Disable dynamic compression (optional, and not recommended if you're proxying)
gzip off;
gzip_types text/css text/javascript application/javascript application/x-javascript;
sendfile on;
location / {
index fledge.html;
}
}
}