Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable HTTPS on thingsboard

Im trying to enable HTTPS using this guide (https://thingsboard.io/docs/user-guide/install/pe/add-haproxy-ubuntu/#step-10-refresh-haproxy-configuration) but i got stuck on step 9 i believe.

sudo certbot-certonly --domain your_domain --email your_email

I get the following error

certbot: error: unrecognized arguments: --tls-sni-01-port 8443

As far as i can tell, lets encrypt no longer supports this argument (tls-sni-01-port) or using ports other than 80 and 443. I got this from (https://serverfault.com/questions/805666/certbot-letsencrypt-on-different-port-than-443).

I am uncertain as how to solve this problem.

like image 490
en_lorithai Avatar asked Nov 23 '25 18:11

en_lorithai


1 Answers

Here is my docker-compose.yml for Thingsboard + HTTPS through Nginx reverse proxy with automatic Let's Encrypt certificates: https://github.com/michalfapso/thingsboard_docker_https/

It uses linuxserver/swag which takes care of the certificates and is kept in sync with Let's Encrypt requirements by the linuxserver.io community.

like image 143
Michal Fapso Avatar answered Nov 26 '25 23:11

Michal Fapso



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!