diff options
author | Devaev Maxim <[email protected]> | 2018-08-09 04:06:44 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2018-08-09 04:06:44 +0300 |
commit | e3f5d1e4d60a7e56c4113b00101aae95881db464 (patch) | |
tree | 49a3a27ab897f6864d04f329546a3dbe77e2a4e3 /os | |
parent | f71788bb35b810ff79d321e5914edcf554e00c60 (diff) |
using https with self-signed cert
Diffstat (limited to 'os')
-rw-r--r-- | os/platforms/v1/Dockerfile.part | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/os/platforms/v1/Dockerfile.part b/os/platforms/v1/Dockerfile.part index 4b355acb..b66d52bf 100644 --- a/os/platforms/v1/Dockerfile.part +++ b/os/platforms/v1/Dockerfile.part @@ -19,5 +19,12 @@ RUN sed -i -e "s/console=ttyAMA0\,115200//g" /boot/cmdline.txt \ && sed -i -e "s/kgdboc=ttyAMA0\,115200//g" /boot/cmdline.txt RUN systemctl mask [email protected] -RUN cp /usr/share/kvmd/configs/nginx/nginx.conf /etc/nginx/ +RUN cp /usr/share/kvmd/configs/nginx/nginx.conf.example /etc/nginx/ RUN cp /usr/share/kvmd/configs/kvmd/v1.yaml /etc/kvmd.yaml + +RUN mkdir /etc/nginx/ssl \ + && cd /etc/nginx/ssl \ + && openssl req -new -x509 -nodes -newkey rsa:4096 -keyout server.key -out server.crt -days 3650 \ + -subj "/C=RU/ST=Moscow/L=Moscow/O=Pi-KVM/OU=Pi-KVM/CN=localhost" \ + && chmod 400 server.key \ + && chmod 444 server.crt |