Mercurial > sat_docs
diff docker/libervia/Dockerfile @ 85:bcba1966e6db
docker: certificate generation + various improvments:
- certificate is now auto-generated on first prosody launch is there is not already one
- certificate generated on build is removed to avoid image-wide certificate
- generated certificates are stored in sat_data
- data image is now based on prosody which is itslef based on sat_pubsub
- prosody configuration is moved to /etc/prosody/prosody_sat_cfg, and stored in sat_data
- building order changed to adapt to new images hierarchy
- libervia default configuration set to both without redirection (and with a security warning)
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 18 Feb 2016 17:31:09 +0100 |
parents | 686a8c982c3f |
children | b69056368901 |
line wrap: on
line diff
--- a/docker/libervia/Dockerfile Thu Feb 18 17:23:08 2016 +0100 +++ b/docker/libervia/Dockerfile Thu Feb 18 17:31:09 2016 +0100 @@ -49,6 +49,17 @@ RUN rm -rf libervia +################# +# CONFIGURATION # +################# + +# we want to use certificates in /usr/share/sat/certificates +RUN echo "\n[libervia]\n\ +tls_private_key = /usr/share/sat/certificates/libervia.key\n\ +tls_certificate = /usr/share/sat/certificates/libervia.crt\n\ +connection_type = both\n\ +redirect_to_https = 0" >> /etc/sat.conf + ##################### # FIRST LAUNCH TEST # ##################### @@ -106,4 +117,3 @@ USER sat ENTRYPOINT ["libervia_cont_launch", "fg"] -CMD ["-t", "http"]