25 lines
No EOL
580 B
Nginx Configuration File
25 lines
No EOL
580 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
# Dedicated Health Check Endpoint
|
|
location /health {
|
|
return 200 'healthy';
|
|
add_header Content-Type text/plain;
|
|
}
|
|
|
|
# Your SPA routing (aliased to handle the sub-path)
|
|
location /lab/data-dashboard/ {
|
|
alias /usr/share/nginx/html/;
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
# Fallback for the root domain
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
|
|
gzip on;
|
|
gzip_types text/css application/javascript application/json;
|
|
} |