Http.conf – Haproxy

Home » Asterisk Users » Http.conf – Haproxy
Asterisk Users 1 Comment

hello,

is it possible move asterisk http server behind haproxy (haproxy as SSL
endpoint, asterisk http only)

any examples?

my current http.conf

[general]
enabled=yes bindaddr=0.0.0.0
tlsenable=yes tlsbindaddr=0.0.0.0:8089
tlscertfile=/etc/pki/tls/certs/some.crt tlsprivatekey=/etc/pki/tls/private/some.key tlscipher=ALL

tnx

marek

One thought on - Http.conf – Haproxy

  • Hi Marek,

    You need to remove the tlsenable, tlsbindaddr, tlscertfile tlsprivatekey and tlscipher, which will make your Asterisk HTTP only, and then you can stick haProxy infront and forward all of the traffic to asterisk as a
    “backend”; haProxy would also have a “frontend” which will support your HTTPS setup. You might need to do URL rewriting in haProxy or even add a ”
    prefix” config option to http.conf to add a prefix to the URLs asterisk gives out – it entirely depends on your setup

    Dan