URL shorten nginx https

Hello, this is my nginx tomcat.conf with redirection to https. It is also possible somehow to shorten url from https://xwiki.ales.cz/xwiki to only https://xwiki.ales.cz?
Thanks

server {
listen 80;
server_name xwiki.ales.cz;

location ~ /.well-known {
    allow all;
}

rewrite     ^   https://$server_name$request_uri? permanent;

access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;

}

server {
listen 443;
server_name xwiki.ales.cz;

root /var/www/html;

# Configuration to avoid Request Entity too large error 413
client_max_body_size 0;

ssl on;
ssl_certificate /etc/ssl/certs/ales.cz.cer;
ssl_certificate_key /etc/ssl/certs/ales.cz.pem;

access_log /var/log/nginx/access_ssl.log;
error_log /var/log/nginx/error_ssl.log;

location / {
    proxy_set_header Host $http_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forward-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    proxy_set_header X-Scheme $scheme;
    proxy_redirect off;
    if (!-f $request_filename) {
        proxy_pass http://127.0.0.1:8080;
        break;
    }
}

location ~ /.well-known {
    allow all;
}

}