This repository was archived by the owner on Jun 18, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ ENV CONFIG_DIR=/usr/local/etc/haproxy/
1010# lua http
1111RUN 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
1717RUN haproxy -c -- $CONFIG_DIR/haproxy.cfg
1818
Original file line number Diff line number Diff line change 11global
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
1515listen http
16- bind *:5002
16+ bind *:80
1717 http-request use-service lua.acme if { path_beg /.well-known/acme-challenge/ }
1818
1919listen acme
@@ -22,6 +22,5 @@ listen acme
2222
2323listen 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
You can’t perform that action at this time.
0 commit comments