server {
    listen 80;
    server_name  eadst.com
                 www.eadst.com
                 ""
                 101.43.240.170
                 ;

    access_log  /home/www/blog/script/access.log;
    error_log   /home/www/blog/script/error.log;

    charset utf-8;

    gzip on;
    gzip_types text/plain application/x-javascript text/css text/javascript application/x-httpd-php application/json text/json image/jpeg image/gif image/png application/octet-stream;

    error_page 404 /404.html;
    error_page 500 502 503 504 /50x.html;

    # ✅ 新增：单独托管 verification.html（不经过 uwsgi）
    location = /verification.html {
        alias /home/www/blog/templates/verification.html;
        default_type text/html;
        try_files /home/www/blog/templates/verification.html =404;
    }

    location / {
        include uwsgi_params;
        uwsgi_connect_timeout 30;
        uwsgi_pass 10.0.8.5:8000;
    }

    location /static/ {
        alias /home/www/blog/static/;
        index index.html index.htm;
    }

    location /disk/ {
        alias /home/www/blog/media/disk/;
        autoindex on;
        autoindex_exact_size off;
        autoindex_localtime on;
    }

    client_max_body_size 8000M;
}
