Skip to content

Commit d0fc942

Browse files
committed
fix
1 parent ec542bc commit d0fc942

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN wget -O dataplaneapi.apk https://github.com/haproxytech/dataplaneapi/release
77
RUN apk add --allow-untrusted dataplaneapi.apk
88
RUN mkdir /run/haproxy
99
RUN touch /run/haproxy/admin.sock
10+
COPY ./dataplaneapi.yml /etc/haproxy/dataplaneapi.yaml
1011

1112
VOLUME /etc/letsencrypt
1213
EXPOSE 80 443

dataplaneapi.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
dataplaneapi:
2+
host: 0.0.0.0
3+
port: 5555
4+
userlist:
5+
userlist: dataplaneapi
6+
resources:
7+
maps_dir: /etc/haproxy/maps
8+
ssl_certs_dir: /etc/haproxy/ssl
9+
general_storage_dir: /etc/haproxy/general
10+
spoe_dir: /etc/haproxy/spoe
11+
transaction:
12+
transaction_dir: /var/lib/dataplaneapi/transactions
13+
backups_number: 10
14+
backups_dir: /var/lib/dataplaneapi/backups
15+
haproxy:
16+
config_file: /usr/local/etc/haproxy/haproxy.cfg
17+
haproxy_bin: /usr/local/sbin/haproxy
18+
reload:
19+
reload_delay: 5 # int 2
20+
reload_cmd: "killall haproxy && haproxy -f /usr/local/etc/haproxy/haproxy.cfg"
21+
restart_cmd: "killall haproxy && haproxy -f /usr/local/etc/haproxy/haproxy.cfg"
22+
reload_strategy: custom
23+
log_targets:
24+
- log_to: file
25+
log_file: /var/log/dataplaneapi.log
26+
log_level: info
27+
log_types:
28+
- access
29+
- app
30+

0 commit comments

Comments
 (0)