Giter VIP home page Giter VIP logo

Comments (6)

JrCs avatar JrCs commented on May 21, 2024

Hi, no we can't remove VIRTUAL_HOST environment variable because it is use to configure nginx proxy and it is not used by this letsencrypt container.
If you don't have a VIRTUAL_HOST environment variable on your web container, the nginx proxy will not respond to requests for the domain.

from acme-companion.

sherter avatar sherter commented on May 21, 2024

@JrCs I know that VIRTUAL_HOST is used by the proxy-container and not by the letsencrypt container. But the letsencrypt container also modifies the nginx config. The location /.well-known/ { .. } part is from the letsencrypt container, isn't it?
So couldn't the letsencrypt container also create a virtual host on its own, if no VIRTUAL_HOST variable is defined? This would probably require some modifications to nginx.tmpl.

from acme-companion.

JrCs avatar JrCs commented on May 21, 2024

Yes the letsencrypt container add some configurations to the nginx proxy.
Yes we need to change the nginx.tmpl to get this case, and nginx.tmpl is a template from nginx-proxy.
I don't have a specific version of nginx.tmpl for this letsencrypt container. Each container use it's own environment variable (VIRTUAL_HOST for the docker-gen container and LETS_ENCRYPT_XXX for this container) and i don't want to mix all of them.
The nginx reverse proxy can be used with the docker-gen container without the letsencrypt container.
This container is just an add-ons to the nginx/docker-gen containers and it is not design to replace functionnality of one of them:

  • nginx container do the reverse proxy
  • docker-gen update the nginx proxy configuration when containers are create/remove
  • letsencrypt-nginx-proxy-companion create letsencrypt certificats

from acme-companion.

sherter avatar sherter commented on May 21, 2024

@JrCs I understand. It's totally legitimate to keep things simple and compatible with the nginx.tmpl in jwilder/nginx-proxy 👍
Would you mind adding a LICENSE file to this project so I can fork it and support my specific use case?

from acme-companion.

JrCs avatar JrCs commented on May 21, 2024

@sherter ok i will add a LICENSE file done

from acme-companion.

sherter avatar sherter commented on May 21, 2024

Cool, thanks!

from acme-companion.

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.