nginx去掉url末尾斜杆

server {
    
    # ...
    
    rewrite ^/(.*)/$ /$1 permanent;
    
    # ...
}