server { listen 80; 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; }