location /git/assets {
    root /home/ymf/repo/cgit;
    rewrite ^/git/assets(.*)$ /assets$1 break;
    disable_symlinks off;
}
