Skip to content

Instantly share code, notes, and snippets.

@JMVS
Created July 24, 2022 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JMVS/ad6ef9ffcc3a88e205fe7479cf536337 to your computer and use it in GitHub Desktop.
Save JMVS/ad6ef9ffcc3a88e205fe7479cf536337 to your computer and use it in GitHub Desktop.
Let's Encrypt with OctoPrint & DietPi

Initial: https://community.octoprint.org/t/lets-encrypt-on-octopi/15328

DuckDNS: DuckDNS_Token="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" acme.sh --issue --dns dns_duckdns -d subdomain.duckdns.org --renew-hook "cat /root/.acme.sh/subdomain.duckdns.org/fullchain.cer /root/.acme.sh/subdomain.duckdns.org/subdomain.duckdns.org.key >/etc/ssl/certificado.pem && systemctl reload haproxy"

HAProxy (DietPi): https://github.com/guysoft/OctoPi/tree/70294fa03277c6ca9d013de799c619f50dd12cdf/src/modules/octopi/filesystem/root/etc/haproxy

HAProxy.cfg: Change port 127.0.0.1:5000 by 5001 & add octoprint's error files to errors folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment