Make config file:
sudo nano /etc/nginx/sites-available/bot.conf
Then copy and paste bot.conf
content and edit YOUR.DOMAIN strings. Now install Let's Encrypt on your server. For example in Debian you need to add jessie-backports
and easily install it with apt-get
:
sudo apt-get install -t jessie-backports letsencrypt
Then get cert for you domain: