diff options
author | Devaev Maxim <[email protected]> | 2018-08-10 01:45:43 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-08-10 02:28:35 +0300 |
commit | b2f3042935a35d29c0e95d98e46ee740453d70e9 (patch) | |
tree | c4f13bdc1bc1a673dc50e2cce1e7afa3e4b0701d | |
parent | 48ce26f05d39f4fcab94c0de4c3a7132bd04d692 (diff) |
encrypted htpasswd
-rw-r--r-- | os/platforms/v1/Dockerfile.part | 5 |
1 files changed, 4 insertions, 1 deletions
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 [email protected] 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 |