npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

ssl-autoupdater

v0.1.5

Published

Automatically update SSL certificate on different cloud platforms

Downloads

6

Readme

SSL AutoUpdater

This project is aimed to update SSL certificates (manually uploaded, such as Let's Encrypt) automatically on different server providers (QCloud, Aliyun, Qiniu, etc.).

  • Supported Providers

    • [x] 腾讯云 (QCloud)
    • [x] 七牛云 (Qiniu)

Usage

Make sure there are certificates on your machine, and this project will upload and update them automatically.

The default certificate founder is acme.sh, you can modify the option founder as a function to customize. For further instructions, please refer to the type definition.

Node.js

Install the package

npm i -S ssl-autoupdater

Example:

const autossl = require("ssl-autoupdater")

const QCloudUpdater = new autossl.updater.QCloud("your secretId", "your secretKey")
QCloudUpdater.watch() // watch and update automatically

Advanced usage for sending mail:

const mailer = new autossl.MailSender({
  host: "smtp.example.com",
  port: 465,
  secure: true,
  auth: { // authentification for the smtp server
    username: "your auth username",
    password: "your auth password"
  },
  sender: { // set the sender
    name: "your name to send",
    email: "your email to send"
  },
  receiver: ["[email protected]"] // a list of receivers
})

const QCloudUpdater = new autossl.updater.QCloud("your secretId", "your secretKey", {
  mailer: mailer // when the option `mailer` is set, the updater will send mail once after triggering the event
})

More examples can be found in directory test/.

Docker

Pull cnily03/ssl-autoupdater from Docker Hub

docker run -itd \
  -v /path/to/your/config.js:/app/data/config.js \
  -v ~/.acme.sh:/root/.acme.sh \
  --restart=always \
  --name ssl-autoupdater \
  cnily03/ssl-autoupdater

Replace /path/to/your/config.js with your own configuration file.

Or you can mount the whole directory to /app/data/ to make it easier to manage.

Configuration file is similar to the file config.js at the root of this repository.

References

License

CopyRight (c) Cnily03. All rights reserved.

Licensed under the MIT License.