Setup your own domain with HTTPS in Video

asciicast

HTTPS with botpress

Hey there, It's Daehli from Botpress. In today blog, I will show you how to setup a botpress server that use HTTPS automagically using lets-encrypt.

What's Let's Encrypt

Let's Encrypt is a free, automated, and open certificate authority brought to you by the nonprofit Internet Security Research Group (ISRG)

What is Certbot

Certbot is a free, open-source software tool for automatically using Let’s Encrypt certificates on manually-administrated websites to enable HTTPS.

Certbot is made by the Electronic Frontier Foundation (EFF), a 501(c)3 nonprofit based in San Francisco, CA, that defends digital privacy, free speech, and innovation.

Requirement

  • A valid domain. I will use my own domain dawny.ca
  • Server to link your domain. I use digitalocean for this.
  • Docker
  • Sudo access on your server
  • UFW

Don't worry it will be really easy to set up. I did the hard work for you.

Become a secure chatbot maker

From the botpress repo go in examples/docker-compose. From there, you need to modify some variables to point to your domain name.

Mac OS

$ sed -i '' 's/$PLACE_HOLDER_DOMAIN_NAME/example.com/g' docker-compose-community-nginx-https.yaml$ sed -i '' 's/$PLACE_HOLDER_DOMAIN_NAME/example.com/g' nginx/user_conf.d/https.conf<

Linux

$ sed -i 's/$PLACE_HOLDER_DOMAIN_NAME/example.com/g' docker-compose-community-nginx-https.yaml$ sed -i 's/$PLACE_HOLDER_DOMAIN_NAME/example.com/g' nginx/user_conf.d/https.conf<

Now, it's time to start the container to run botpress in HTTPS.

docker-compose -f docker-compose-community-nginx-https.yaml up -d

The -f parameters is to select a different manifest

The -d is to start the container in detach mode.

Allow HTTPS

I hope this tutorial helped you! If you’re interested, please head over and join our Botpress community, where you can pose questions and learn from other Botpress developers.

If you want more information on chatbot security and what we covered today, here’s a list of resources for further exploration:

And if you like this content, sign up for the Botpress newsletter!

Start the docker container

Now, it's time to start the container to run botpress in HTTPS.

docker-compose -f docker-compose-community-nginx-https.yaml up -d

The -f parameters is to select a different manifest

The -d is to start the container in detach mode.

Next Steps & Further Learning

I hope this tutorial helped you! If you’re interested, please head over and join our Botpress community, where you can pose questions and learn from other Botpress developers.

If you want more information on chatbot security and what we covered today, here’s a list of resources for further exploration:

And if you like this content, sign up for the Botpress newsletter!

Related Articles

Product
January 10, 2023

GPT-3 vs GPT-4 | What’s the difference?

Discover the differences between GPT-3 and GPT-4 and learn how the technology can be used to improve business operations.

Industry
November 29, 2021

What Chatbot Authors Need to Know About the Natural Language Processing Algorithm

One common step when building a bot is defining “intents”

Industry
December 23, 2021

Turing Test

The Turing Test is an AI test to see whether, through a chat conversation, a computer can convince a human that it is...

Join 30,000+ chatbot builders reading our content,
Subscribe Now!

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.