From b2f3042935a35d29c0e95d98e46ee740453d70e9 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Fri, 10 Aug 2018 01:45:43 +0300 Subject: encrypted htpasswd --- os/platforms/v1/Dockerfile.part | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'os/platforms') diff --git a/os/platforms/v1/Dockerfile.part b/os/platforms/v1/Dockerfile.part index 0e9443a3..6e3f2599 100644 --- a/os/platforms/v1/Dockerfile.part +++ b/os/platforms/v1/Dockerfile.part @@ -22,9 +22,12 @@ RUN sed -i -e "s/console=ttyAMA0\,115200//g" /boot/cmdline.txt \ RUN systemctl mask serial-getty@ttyAMA0.service RUN sed -e "s/^#PROD//g" /usr/share/kvmd/configs/nginx/nginx.conf.example > /etc/nginx/nginx.conf -RUN echo "admin:admin" > /etc/nginx/htpasswd RUN cp /usr/share/kvmd/configs/kvmd/v1.yaml /etc/kvmd.yaml +ARG WEBUI_ADMIN_PASSWD +ENV WEBUI_ADMIN_PASSWD $WEBUI_ADMIN_PASSWD +RUN echo "$WEBUI_ADMIN_PASSWD" | htpasswd -ci /etc/nginx/htpasswd admin + ARG NEW_HTTPS_CERT ENV NEW_HTTPS_CERT $NEW_HTTPS_CERT RUN echo $NEW_HTTPS_CERT -- cgit v1.2.3