location /kanboard {
    alias /srv/kanboard;
    index index.php;
    try_files = $uri $uri/ /kanboard/index.php;

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_param SCRIPT_FILENAME $request_filename;
        fastcgi_param SERVER_NAME $http_host;
        fastcgi_pass unix:/run/php/kanboard.sock;
    }
}
