Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/batterii/homebrew-haproxy-lua
Homebrew tap for HAProxy with Lua support
https://github.com/batterii/homebrew-haproxy-lua
Last synced: 9 days ago
JSON representation
Homebrew tap for HAProxy with Lua support
- Host: GitHub
- URL: https://github.com/batterii/homebrew-haproxy-lua
- Owner: Batterii
- License: bsd-2-clause
- Created: 2020-05-12T21:21:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-02-26T18:14:24.000Z (over 1 year ago)
- Last Synced: 2024-03-26T11:18:17.035Z (8 months ago)
- Language: Ruby
- Size: 3.91 KB
- Stars: 0
- Watchers: 6
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# homebrew-haproxy-lua
Long ago, one could install [HAProxy][1] with [Lua][2] suport on MacOS by doing
this:```
brew install haproxy --with-lua
```But then, everything changed when [this][3] happened.
We at Batterii want to use HAProxy with Lua in our development environment, and
most of our developers work on MacOS. We've been unable to find a tap to replace
what used to be in the homebrew core, so we're just going to make it ourselves.This is pretty much the same Formula as the one in homebrew core, but with the
old conditional Lua dependency and compilation args put back in.It does not have any bottles defined, so you'll be installing from source if you
use this. This is largely because I don't know how bottles work and don't really
have time to look into it at the moment. If you'd like to have them and have
a better idea of what you're doing than I do, feel free to contribute. :)## Installation
```
brew tap batterii/haproxy-luabrew install batterii/haproxy-lua/haproxy
brew services start haproxy
```## Configuration
As with the core package, your configuration should go in
`HOMEBREW_PREFIX/etc/haproxy.cfg`, and any Lua files should go into that same
directory alongside it. This file will not exist when you first install, so
you'll need to create it yourself following the [manual][4].Unless you installed Homebrew in an an usual way, your `HOMEBREW_PREFIX` should
be `/usr/local`. You can double check this by running `brew --prefix`.If you change the config file, you can restart HAProxy to use it like so:
```
brew services restart haproxy
```## A Note on Naming
We named the formula "haproxy," which is the same as the one in core. The
Homebrew docs recommend against doing this since it prevents packages with
shared names from being installed side-by-side. I honestly doubt, however, that
anybody will need to have a side-by-side install of HAProxy-- one with Lua and
one without. So the name is kept the same for convience and compatbility with
existing tooling.[1]: http://www.haproxy.org/
[2]: https://www.lua.org/about.html
[3]: https://github.com/Homebrew/homebrew-core/issues/31510
[4]: http://cbonte.github.io/haproxy-dconv/2.2/configuration.html