From e8b25b21efc86487f5062af25d38de756db4c3fc Mon Sep 17 00:00:00 2001 From: Mackie Date: Mon, 8 Jun 2026 07:52:23 +0800 Subject: [PATCH] tty --- nginx.conf | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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