Skip to content

Commit deefdff

Browse files
author
WhisperN
committed
Fixing the Nginx configuration
1 parent b8562e4 commit deefdff

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

iot-dashboard/nginx.conf

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
server {
2+
listen 80;
3+
4+
root /usr/share/nginx/html;
5+
index index.html;
6+
7+
location / {
8+
try_files $uri /index.html;
9+
}
10+
11+
location ~* \.(?:ico|css|js|gif|jpe?g|png|woff2?|ttf|svg|eot)$ {
12+
expires 6M;:q
13+
14+
access_log off;
15+
add_header Cache-Control "public";
16+
}
17+
}

0 commit comments

Comments
 (0)