mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
a5f07d7ade
* [MISC] (deps): Bump haproxy in /internal/suites/example/compose/haproxy Bumps haproxy from 2.2.4-alpine to 2.3.0-alpine. Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * Fix HAProxy suite Looks like the new version of HAProxy has config validation which expects a newline at the bottom of `haproxy.cfg`. CI was failing with the following error: [NOTICE] 313/021816 (1) : haproxy version is 2.3.0-1c0a722 [ALERT] 313/021816 (1) : parsing [/usr/local/etc/haproxy/haproxy.cfg:80]: Missing LF on last line, file might have been truncated at position 42. [ALERT] 313/021816 (1) : Error(s) found in configuration file : /usr/local/etc/haproxy/haproxy.cfg [ALERT] 313/021816 (1) : Fatal errors found in configuration. Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Amir Zarrinkafsh <nightah@me.com>
9 lines
321 B
Docker
9 lines
321 B
Docker
FROM haproxy:2.3.0-alpine
|
|
|
|
RUN \
|
|
apk add --no-cache \
|
|
curl \
|
|
lua-json4 \
|
|
openssl && \
|
|
openssl req -new -newkey rsa:4096 -days 365 -nodes -x509 -subj "/C=AU/ST=Victoria/L=Melbourne/O=Authelia/CN=*.example.com" -keyout haproxy.key -out haproxy.crt && \
|
|
cat haproxy.key haproxy.crt > /usr/local/etc/haproxy/haproxy.pem |