OPNsense Forum

Archive => 19.1 Legacy Series => Topic started by: siginigin on March 28, 2019, 08:11:21 AM

Title: HAProxy custom config
Post by: siginigin on March 28, 2019, 08:11:21 AM
Hi guys,

I need to have following codesnippet in /usr/local/etc/haproxy.conf in backend pool:

server kibana_E1 10.1.1.2:443 check inter 2s port 443  check-ssl verify none source 1.1.1.254
server kibana_E2 10.1.1.3:443 check inter 2s port 443  check-ssl verify none source 1.1.1.254


but throuh GUI I'm can only choose ssl instead of check-ssl as health check. This works if I do this manually in mentioned file and restart haproxy.
The problem is that this is rewritten after Apply trough GUI.

So how to do it? The only way I can see now is to edit /usr/local/opnsense/service/templates/OPNsense/HAProxy/haproxy.conf, but not sure what it does after upgrade.

Currently I'm running 19.1.2.

Thank you for help.
Title: Re: HAProxy custom config
Post by: franco on March 28, 2019, 11:12:51 PM
Easiest way if you don't know how is requesting the feature for the GUI plugin here:

https://github.com/opnsense/plugins/issues


Cheers,
Franco
Title: Re: HAProxy custom config
Post by: siginigin on March 29, 2019, 09:50:20 AM
Thank you, I did so https://github.com/opnsense/plugins/issues/1282
Title: Re: HAProxy custom config
Post by: franco on March 29, 2019, 03:10:11 PM
Splendid, thanks. Handed over to maintainer of the plugin.


Cheers,
Franco