This repository was archived by the owner on Jun 18, 2024. It is now read-only.
File tree 2 files changed +6
-7
lines changed
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/
10
10
# lua http
11
11
RUN curl https://raw.githubusercontent.com/haproxytech/haproxy-lua-http/master/http.lua > /http.lua
12
12
# 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
16
16
# check conf
17
17
RUN haproxy -c -- $CONFIG_DIR/haproxy.cfg
18
18
Original file line number Diff line number Diff line change 1
1
global
2
- log /dev/log local0 debug
2
+ log stdout format raw local0 debug
3
3
daemon
4
4
lua-load config.lua
5
5
lua-load acme.lua
@@ -13,7 +13,7 @@ defaults
13
13
timeout server 10s
14
14
15
15
listen http
16
- bind *:5002
16
+ bind *:80
17
17
http-request use-service lua.acme if { path_beg /.well-known/acme-challenge/ }
18
18
19
19
listen acme
@@ -22,6 +22,5 @@ listen acme
22
22
23
23
listen acme-ca
24
24
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
27
26
http-request set-header Host acme-v02.api.letsencrypt.org
You can’t perform that action at this time.
0 commit comments