22 lines
432 B
Nginx Configuration File
22 lines
432 B
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
|
|
location = / {
|
|
return 301 /serial/;
|
|
}
|
|
|
|
location /serial/ {
|
|
alias /usr/share/nginx/html/serial/;
|
|
try_files $uri $uri/ /serial/index.html;
|
|
}
|
|
|
|
# Health check endpoint (optional but good for deployments)
|
|
location /health {
|
|
access_log off;
|
|
add_header 'Content-Type' 'text/plain';
|
|
return 200 "healthy\n";
|
|
}
|
|
}
|
|
|