Files
RS232Monitor/nginx.conf
2026-01-16 14:50:39 +09:00

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