# Dedicated domain only. No other existing virtual host is edited.
server {
    listen 80;
    listen [::]:80;
    server_name yunkong.xueshang.xyz;
    root /var/www/xueshang-yunkong/current;
    index index.html;
    autoindex off;
    add_header X-Content-Type-Options nosniff always;
    add_header Referrer-Policy no-referrer always;
    add_header Cache-Control "no-cache" always;

    location ^~ /.well-known/acme-challenge/ {
        root /var/www/xueshang-yunkong/acme;
        default_type text/plain;
        try_files $uri =404;
    }
    location ^~ /api/ {
        return 426;
    }
    location / {
        try_files $uri $uri/ =404;
        limit_except GET { deny all; }
    }
}
