Skip to content

profOnno/lua-HAProxy

Repository files navigation

lua-HAProxy

First steps in using lua to update HAProxy for a DOCKER SNI configuration

Lua

  • penlight
  • template
  • text
  • socket
  • socket.unix
  • json

Alpine

Used as Dockerbase for development and I'll use it for the 'final' image.

it's a work in progress

so don't shoot me

Whats working:

  • getting /containers/json
  • getting /containers/xxxidxxxid/json (probably not needed for my configuration)j
  • filling in a haproxy.tmpl using > for lua code and $(var) for text replace

I've made my own http lib over socket.unix. This is an intermediate step, next step whould be to use the existing http lib over socket.unix

there is some garbage checked in

Kind of the first or second time using Lua as script language. So there are some intermediate files, to test some snippet code.

About

Lua script for docker to update HAProxy config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages