On Sat, Sep 29, 2012 at 09:31:22PM +0000, Justin wrote:
> Can ACL's extend past one line?

No in haproxy, each line is a different statement. However you can have long
lines if that helps. If you have many patterns to match, why don't you load
them from a file (acl xxx -f foo.txt) ?

> I'm attempting to write a web interface for HaProxy configuration and trying 
> to
> figure out a way to create rule sets that will be easy for users to 
> write rules without having to worry about where lines start and end.

There is no one-size-fits-all here, some people prefer well-aligned anonymous
URLs, other ones prefer to load everything from files and have short rules,
etc...

> I suppose another option is create my own "rule" language in the web 
> interface and parse on my end remove new line tags and format properly 
> in the haproxy configuration.
> 
> Please let me know what options exist. Many thanks!

It's hard to provide more hints at this point, sometimes a config is better
than pure guess.

Regards,
Willy


Reply via email to