# nginx.conf (调试版)
server {
  listen 8333;
  server_name localhost;
  
  root /usr/share/nginx/html;
  index index.html;
  
  # 详细错误日志
  access_log /var/log/nginx/access.log;
  error_log /var/log/nginx/error.log debug; # 开启debug日志

  location / {
    try_files $uri $uri/ /index.html;
    
    # 临时允许目录列表（调试用）
    autoindex on;
  }

  # 防止vue-router路由被缓存
  location ~* \.(html)$ {
    add_header Cache-Control "no-cache, must-revalidate";
  }
}
