I used docker-compose, which ran Nginx proxy server, my ASP.NET Core app and Certbot.
Then I got from Certbot following response:
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for velcoro.xyz
http-01 challenge for www.velcoro.xyz
Using the webroot path /var/www/html for all unmatched domains.
Waiting for verification…
Challenge failed for domain www.velcoro.xyz
Challenge failed for domain velcoro.xyz
http-01 challenge for www.velcoro.xyz
http-01 challenge for velcoro.xyz
Cleaning up challenges
Some challenges have failed.
IMPORTANT NOTES:
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address. Additionally, please check that
your computer has a publicly routable IP address and that no
firewalls are preventing the server from communicating with the
client. If you’re using the webroot plugin, you should also verify
that you are serving files from the webroot path you provided.