Coder Social home page Coder Social logo

Comments (13)

wmnnd avatar wmnnd commented on August 25, 2024 5

Hey everyone, thank you for your patience!
The new 2.x branch now makes it much easier to specify multiple domains. You can now call the script like this to initialize it with multiple domains: ./init-letsencrypt.sh -d domain1.org -d domain2.org πŸŽ‰

from nginx-certbot.

moritzschaefer avatar moritzschaefer commented on August 25, 2024 4

do a PR <3

from nginx-certbot.

bjornol avatar bjornol commented on August 25, 2024 1

Thanks for sharing this. Was looking to add the same. Worked like a charm

from nginx-certbot.

dchersey avatar dchersey commented on August 25, 2024 1

The 2nd argument (production | staging) determines which docker-compose.$1 file is used later in the script. So that works if that's how you organize your docker-composes, otherwise the user has to modify accordingly. I'll create a PR shortly...

from nginx-certbot.

wmnnd avatar wmnnd commented on August 25, 2024 1

@dchersey I think it would be nicer to be more explicit here. So I suggest adding an -f parameter that allows specifying the actual docker-compose.yml path.

from nginx-certbot.

romfrolov avatar romfrolov commented on August 25, 2024 1

Well, it wasn't so flawless for me. For the first domain everything worked smoothly, but when it was running for the second one I got the following error:

Failed authorization procedure. <mydomain> (http-01): urn:ietf:params:acme:error:connection :: The server could not connect to the client to verify the domain :: Fetching http://<mydomain>/.well-known/acme-challenge/VaCGMLcnszmYVc6afGPJbGwUS2SjuKhWABLcCv2HZkM: Connection refused

from nginx-certbot.

hodgef avatar hodgef commented on August 25, 2024 1

This worked for me. Thanks! I hope this is merged soon as the code on master is broken for multiple domains @wmnnd

from nginx-certbot.

vesamet avatar vesamet commented on August 25, 2024 1

I don't think it will, since the maintainer doesn't seem to focus on this script for the last few months

EDIT: I guess I was wrong πŸ‚ :)

from nginx-certbot.

wmnnd avatar wmnnd commented on August 25, 2024

I like the idea of calling the script with the domains as parameters. That’s so much more elegant!

Instead of using staging and production as arguments, I would suggest a --staging switch, since productiondoesn't seem to do anything.

Feel free to create a PR for this πŸ‘

from nginx-certbot.

pablodiegoss avatar pablodiegoss commented on August 25, 2024

I was just working with this and came to a really close solution, came here to check for any pending PRs or issues.
Nice dude, this will help a lot of people o/

from nginx-certbot.

adespain avatar adespain commented on August 25, 2024

I also like this solution! I apologize if you get an email for some domains I was testing @dchersey i forgot to change the address before I ran it. However with your updated script I am getting:

req: Can't open "/etc/letsencrypt/live/domain-example.com/privkey.pem" for writing, No such file or directory

for each of the domains, do you know why i get that error?

from nginx-certbot.

vesamet avatar vesamet commented on August 25, 2024

@dchersey Same for me. I also got req: Can't open "/etc/letsencrypt/live/domain-example.com/privkey.pem" for writing, No such file or directory

from nginx-certbot.

radusuciu avatar radusuciu commented on August 25, 2024

Both the current and this modified init script just hang for me when getting dummy certs..

edit: solved by upgrading docker/docker-compose. not sure what the issue was but I recommend trying that for anyone else having a hanging issue.

from nginx-certbot.

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.