This commit is contained in:
Mackie 2026-06-08 07:52:23 +08:00
parent 2c39f622ce
commit e8b25b21ef

View file

@ -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;
}