mirror of
https://github.com/KevinMidboe/hivemonitor.git
synced 2025-10-28 17:10:26 +00:00
* adds a bunch of ui components with mock data * build docker image with yarn.lock & yarn instead of npm * easier to add topics, build options smarter from ENV vars * fallback to index.html on all requests for SPA * updates w/ black/white support, better mobile styling * adds test components to home & dashboard pages * adds chart.js dependency * mqtt payload examples * lint * drone ci config * eslint fixes
43 lines
838 B
Nginx Configuration File
43 lines
838 B
Nginx Configuration File
events {
|
|
worker_connections 1024;
|
|
}
|
|
|
|
http {
|
|
include mime.types;
|
|
sendfile on;
|
|
|
|
server {
|
|
listen 8080;
|
|
listen [::]:8080;
|
|
|
|
# resolver 127.0.0.11;
|
|
autoindex off;
|
|
|
|
server_name _;
|
|
server_tokens off;
|
|
|
|
root /app/;
|
|
gzip_static on;
|
|
|
|
|
|
# what file to server as index
|
|
index index.html;
|
|
|
|
location / {
|
|
# First attempt to serve request as file, then
|
|
# as directory, then fall back to redirecting to index.html
|
|
try_files $uri $uri/ $uri.html /index.html;
|
|
}
|
|
|
|
location ~* \.(?:css|js|jpg|svg)$ {
|
|
expires 30d;
|
|
add_header Cache-Control "public";
|
|
}
|
|
|
|
location ~* \.(?:json)$ {
|
|
expires 1d;
|
|
add_header Cache-Control "public";
|
|
}
|
|
}
|
|
}
|