Where is Haproxy config in 0.15?


#1

What is the problem?
Cannot find the Haproxy config to edit settings.

What did you already try to solve it?
Looked on the SD card, did not see anythign related to Hapoxy. Meant to be preinstalled here /etc/haproxy/haproxy.cfg ??

Additional information about your setup (OctoPrint version, OctoPi version, printer, firmware, octoprint.log, serial.log or output on terminal tab, ...)

Octopi 0.15 with Raspberry Pi 3


#2
------------------------------------------------------------------------------
OctoPrint version : 1.3.8
OctoPi version    : 0.15.0
------------------------------------------------------------------------------

pi@octopi3p:~ $ ls -la /etc/haproxy/haproxy.cfg
-rw-r--r-- 1 root root 1179 Jul 17  2017 /etc/haproxy/haproxy.cfg

All there.


#3

Is the etc folder meant to show on the SD card when plugged into windows?


#4

No. You need to SSH into it for that. What shows under Windows is only a fraction of the whole file system, a special partition for some very basic/hen-egg style of configuration. For anything else you need SSH.


#5

Oh right, so once I log into my Pi I should type in sudo nano /etc/haproxy/haproxy.cfg and this will bring me to the config file?


#6

Yes. But best make a copy before so in case you make a mistake when you change things, you can easily roll back to a working state:

cp /etc/haproxy/haproxy.cfg ~/haproxy.cfg.bck

You will be able to restore this then with

sudo cp ~pi/haproxy.cfg.bck /etc/haproxy/haproxy.cfg

#7

Great thanks for the help