Giter Site home page Giter Site logo

Comments (3)

pierreozoux avatar pierreozoux commented on August 23, 2024

I do run this behind a TLS offloader.
I agree with you that it si a nice to have.

How could we make it easy to have best of both world?

We could have an env variable "BEHIND_PROXY", if set to true, load nginx conf, if not, load nginx-ssl conf.
Adn if you load nginx-ssl.conf, it would check for the presence of cert, if not present, it will kindly ask letsencrypt for a new cert.

Does it sound reasonable to you?

I'd be happy to accept this kind of PR, but the code has to be simple.

from compose-known.

paulcmal avatar paulcmal commented on August 23, 2024

We could have an env variable "BEHIND_PROXY", if set to true, load nginx conf, if not, load nginx-ssl conf.

Agreed, but how about HTTPS_ENABLED? That's more explicit than "BEHIND_PROXY"?

Also, if TLS is enabled then we need to know the hostname used so that we can attach the volume /etc/letsencrypt/DOMAIN to our container. As I pointed out in #11, we need the domain used for the Known instance anyway. Do you see any inconvenience using hostname?

from compose-known.

pierreozoux avatar pierreozoux commented on August 23, 2024

I'll close this issue, I prefer to keep this project focused on delivering a good known behind a proxy than an average known for everything.
Let's encrypt is part of the haproxy setup.

from compose-known.

Related Issues (18)

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.