Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Commit 8b5a958

Browse files
author
Julien Francoz
committed
update haproxy configuration
1 parent 0bee7dc commit 8b5a958

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ ENV CONFIG_DIR=/usr/local/etc/haproxy/
1010
# lua http
1111
RUN curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-http/master/http.lua > /http.lua
1212
# https://github.com/haproxytech/haproxy-lua-acme
13-
RUN curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-acme/master/acme.lua > /acme.lua \
14-
&& curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-acme/master/config.lua > /config.lua \
15-
&& curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-acme/master/haproxy.cfg > $CONFIG_DIR/haproxy.cfg
13+
ADD acme.lua /acme.lua
14+
ADD config.lua /config.lua
15+
ADD haproxy.cfg $CONFIG_DIR/haproxy.cfg
1616
# check conf
1717
RUN haproxy -c -- $CONFIG_DIR/haproxy.cfg
1818

haproxy.cfg

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
global
2-
log /dev/log local0 debug
2+
log stdout format raw local0 debug
33
daemon
44
lua-load config.lua
55
lua-load acme.lua
@@ -13,7 +13,7 @@ defaults
1313
timeout server 10s
1414

1515
listen http
16-
bind *:5002
16+
bind *:80
1717
http-request use-service lua.acme if { path_beg /.well-known/acme-challenge/ }
1818

1919
listen acme
@@ -22,6 +22,5 @@ listen acme
2222

2323
listen acme-ca
2424
bind 127.0.0.1:9012
25-
# server ca acme-v02.api.letsencrypt.org:443 ssl verify none
26-
server ca 127.0.0.1:4431 ssl verify none
25+
server ca acme-v02.api.letsencrypt.org:443 ssl verify none
2726
http-request set-header Host acme-v02.api.letsencrypt.org

0 commit comments

Comments
 (0)