Git Product home page Git Product logo

Comments (9)

RualdOrdelman avatar RualdOrdelman commented on August 19, 2024 1

@xirixiz can you tell me where to mount the host SSL folder into the DSMR-reader, so that the cert is used in the container.

from dsmr-reader-docker.

xirixiz avatar xirixiz commented on August 19, 2024

Hi, I`m not sure what you'd like me to change as you posted the solution yourself 😄.

You can mount a volume containing your certificate and then use it within your container.

from dsmr-reader-docker.

RualdOrdelman avatar RualdOrdelman commented on August 19, 2024

The example docker-compose file is from a different (unifi) container. Can we map volumes inside this container? Can you help me how and where to map the SSL cert inside the container?

from dsmr-reader-docker.

xirixiz avatar xirixiz commented on August 19, 2024

Yes. This is how it works basically:

   volumes:
     - './source_from_local_machine:/mount_folder_in_docker_container'

from dsmr-reader-docker.

Xitro01 avatar Xitro01 commented on August 19, 2024

I would also like to know the answer to this question! 👍

from dsmr-reader-docker.

xirixiz avatar xirixiz commented on August 19, 2024

Question for you first, why would you do that?

from dsmr-reader-docker.

xirixiz avatar xirixiz commented on August 19, 2024

... sorry, forget my question, I was reading SSH instead of SSL...

from dsmr-reader-docker.

xirixiz avatar xirixiz commented on August 19, 2024

As it's Docker running with nginx, it's possible to follow the standard procedure:
https://docs.nginx.com/nginx/admin-guide/security-controls/securing-http-traffic-upstream/
https://docs.nginx.com/nginx/admin-guide/security-controls/terminating-ssl-http/

You could also use a Docker example as a reference:
https://www.freecodecamp.org/news/docker-nginx-letsencrypt-easy-secure-reverse-proxy-40165ba3aee2/

However, you probably need additional config in /etc/nginx/conf.d, so you need to mount this in your Docker image. Ofcourse you could make it optional and create a PR so everyone can optionally make use of it.

from dsmr-reader-docker.

Xitro01 avatar Xitro01 commented on August 19, 2024

As it's Docker running with nginx, it's possible to follow the standard procedure:
https://docs.nginx.com/nginx/admin-guide/security-controls/securing-http-traffic-upstream/
https://docs.nginx.com/nginx/admin-guide/security-controls/terminating-ssl-http/

You could also use a Docker example as a reference:
https://www.freecodecamp.org/news/docker-nginx-letsencrypt-easy-secure-reverse-proxy-40165ba3aee2/

However, you probably need additional config in /etc/nginx/conf.d, so you need to mount this in your Docker image. Ofcourse you could make it optional and create a PR so everyone can optionally make use of it.

Hi,

I’m not really that much of a coding expert, definately not combined with docker containers. Yet, wouldn’t it be a good idea and easy implementation to just add an ENV: SSL
If SSL == True, then add the following lines to the nginx config:
listen 443 ssl;
ssl_certificate /etc/ssl/private/fullchain.pem
ssl_certificate_key /etc/ssl/private/privkey.pem
With the description that the folder from Let’sEncrypt needs to be mounted on /etc/ssl/private in the container with the right privileges. This spares me a lot of customization of the original docker.

from dsmr-reader-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.