summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Dockerfile2
-rw-r--r--chaperone.d/vpnweb.conf4
2 files changed, 5 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 0fa5c10..b867132 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -7,7 +7,7 @@ RUN apt-get -q update && env DEBIAN_FRONTEND=noninteractive apt-get install -y -
ENV GOPATH=/go
WORKDIR $GOPATH
RUN go get -u 0xacab.org/leap/vpnweb
-RUN strip $GOPATH/leap/vpnweb
+RUN strip $GOPATH/bin/vpnweb
FROM registry.git.autistici.org/ai3/docker/chaperone-base
diff --git a/chaperone.d/vpnweb.conf b/chaperone.d/vpnweb.conf
new file mode 100644
index 0000000..1c10f09
--- /dev/null
+++ b/chaperone.d/vpnweb.conf
@@ -0,0 +1,4 @@
+vpnweb-server.service: {
+ command: "/bin/sh -c 'exec /usr/local/bin/vpnweb -caCrt ${CLIENT_CA.CRT:-/etc/leap/ca/client_ca.crt} -caKey ${CLIENT_CA.KEY:-/etc/leap/ca/client_ca.key} -notls }'",
+ exit_kills: false
+}