vumario / Secure-OctoPi

A more secure configuration for HAProxy when setting up your Octoprint instance on a Raspberry Pi.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Secure-OctoPi

Many 3D printing enthusiasts turn to the open source software Octoprint to run their 3D printer so they do not have to dedicate an entire computer to run thier printer. Octoprint convieniently comes with its own Raspberry Pi ready image called Octopi. Of course once Octopi is set up the typical next thought is that you would like to be able to access your Octopi from wherever you are over the internet. The Octoprint FAQ section warns that it does not have sufficent security to be pointed internet facing by itself. Octoprint instead reccommends that you use HAProxy as a reverse proxy to provide authentication and security for Octoprint. In this tutorial I will show you how to configure HAProxy to be a bit more secure than most tutorials you will find on the web.

Read my full tutorial in the Wiki if you need a step by step walkthrough to get this running.

Quick and Dirty

If you know what you're doing, just take my haproxy.cfg and copy it to your Pi in the /etc/haproxy/haproxy.cfg folder. Edit the last line of the config file for your [user] and [password].

You will also need to create a directory /var/empty and chmod 0 it to jail haproxy once it's finished loading.

About

A more secure configuration for HAProxy when setting up your Octoprint instance on a Raspberry Pi.

License:MIT License