diff --git a/nginx.conf b/nginx.conf index 5195bb4..ba1a6fa 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,9 +1,19 @@ server { listen 80; - - # Redirect traffic from /lab/data-dashboard/ to your index.html + root /usr/share/nginx/html; + index index.html; + + # This location must match the Traefik PathPrefix location /lab/data-dashboard/ { alias /usr/share/nginx/html/; try_files $uri $uri/ /index.html; } + + # Keep a root location for the Health Check + location / { + try_files $uri $uri/ /index.html; + } + + gzip on; + gzip_types text/css application/javascript application/json; } \ No newline at end of file