Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 14: Upgrade greenlock and other dependencies #270

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

JumpLink
Copy link

I have upgrade greenlock (and this plugins) to v4 to get redbird working on Node 14.

This has other advantages, greenlock renews the certificates by itself, so the renewal logic can be removed (but I didn't do it to not break anything and to stay downward compatible).

Other changes:

  • Pretty logging with Pino
  • Upgrade more dependencies

Copy link
Member

@manast manast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks for the PR, highly appreciated.

lib/letsencrypt.js Outdated Show resolved Hide resolved
lib/proxy.js Outdated Show resolved Hide resolved
lib/proxy.js Outdated Show resolved Hide resolved
@JumpLink
Copy link
Author

Okay nice @manast, with my last commit I have also removed the renew logic but kept the parameters of the updateCertificates method and marked them as deprecated

@JumpLink
Copy link
Author

@manast Greenlock requires two config files:

  • greenlock.d/config.json
  • .greenlockrc

which are automatically generated by Greenlock if they are not found. Before my last commit they were created in the node_modules/redbird folder, which could cause some problems, so now I have changed it to the project root directory using the npm find-root module.

I hope everything works now. I would be happy about improvements, tests and feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants