Compare commits
7 Commits
Author | SHA1 | Date | |
---|---|---|---|
04be5f88eb | |||
3c626908f1 | |||
821b2f95b0 | |||
c0753c185f | |||
dad659e2ed | |||
d1f1ae271a | |||
7bd18cb927 |
@ -8,8 +8,6 @@ testLEGACY:
|
|||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npmci test legacy
|
- npmci test legacy
|
||||||
only:
|
|
||||||
- master
|
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- lossless
|
- lossless
|
||||||
@ -18,8 +16,6 @@ testLTS:
|
|||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npmci test lts
|
- npmci test lts
|
||||||
only:
|
|
||||||
- master
|
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- lossless
|
- lossless
|
||||||
@ -28,8 +24,6 @@ testSTABLE:
|
|||||||
stage: test
|
stage: test
|
||||||
script:
|
script:
|
||||||
- npmci test stable
|
- npmci test stable
|
||||||
only:
|
|
||||||
- master
|
|
||||||
tags:
|
tags:
|
||||||
- docker
|
- docker
|
||||||
- lossless
|
- lossless
|
||||||
@ -39,6 +33,6 @@ release:
|
|||||||
script:
|
script:
|
||||||
- npmci publish npm
|
- npmci publish npm
|
||||||
only:
|
only:
|
||||||
- master
|
- tags
|
||||||
tags:
|
tags:
|
||||||
- lossless
|
- lossless
|
@ -6,7 +6,7 @@ Easily obain SSL certificates from LetsEncrypt. Supports DNS-01 challenge. TypeS
|
|||||||
```typescript
|
```typescript
|
||||||
import {Cert} from "cert";
|
import {Cert} from "cert";
|
||||||
|
|
||||||
myCert = new Cert({
|
let myCert = new Cert({
|
||||||
cfEmail = "some@cloudflare.email",
|
cfEmail = "some@cloudflare.email",
|
||||||
cfKey = "someCloudflareApiKey",
|
cfKey = "someCloudflareApiKey",
|
||||||
outputPath = "someOutputPath" // NOTE: if you already have certificates, make sure you put them in here, so cert only requires the missing ones
|
outputPath = "someOutputPath" // NOTE: if you already have certificates, make sure you put them in here, so cert only requires the missing ones
|
||||||
|
0
dist/hook.d.ts → dist/cert.hook.d.ts
vendored
0
dist/hook.d.ts → dist/cert.hook.d.ts
vendored
3
dist/cert.hook.js
vendored
Normal file
3
dist/cert.hook.js
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
"use strict";
|
||||||
|
|
||||||
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJjZXJ0Lmhvb2suanMiLCJzb3VyY2VzQ29udGVudCI6W119
|
0
ts/hook.ts → dist/cert.paths.d.ts
vendored
0
ts/hook.ts → dist/cert.paths.d.ts
vendored
2
dist/hook.js → dist/cert.paths.js
vendored
2
dist/hook.js → dist/cert.paths.js
vendored
@ -1,3 +1,3 @@
|
|||||||
|
|
||||||
|
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJob29rLmpzIiwic291cmNlc0NvbnRlbnQiOltdfQ==
|
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJjZXJ0LnBhdGhzLmpzIiwic291cmNlc0NvbnRlbnQiOltdfQ==
|
11
dist/install.js
vendored
11
dist/install.js
vendored
@ -1,3 +1,10 @@
|
|||||||
|
"use strict";
|
||||||
|
var beautylog = require("beautylog");
|
||||||
|
var path = require("path");
|
||||||
|
var smartfile = require("smartfile");
|
||||||
|
beautylog.info("installing letsencrypt.sh locally...");
|
||||||
|
smartfile.remote.toFs("https://raw.githubusercontent.com/lukas2511/letsencrypt.sh/master/letsencrypt.sh", path.join(__dirname, "assets/", "le.sh")).then(function () {
|
||||||
|
beautylog.success("Done!");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XJuYW1lLFwiYXNzZXRzL1wiLFwibGUuc2hcIilcbikudGhlbigoKSA9PiB7XG4gICAgYmVhdXR5bG9nLnN1Y2Nlc3MoXCJEb25lIVwiKTtcbn0pOyJdfQ==
|
||||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJpbnN0YWxsLmpzIiwic291cmNlc0NvbnRlbnQiOltdfQ==
|
|
||||||
|
16
package.json
16
package.json
@ -1,14 +1,14 @@
|
|||||||
{
|
{
|
||||||
"name": "cert",
|
"name": "cert",
|
||||||
"version": "0.0.2",
|
"version": "0.0.5",
|
||||||
"description": "automatic cert generation for coreos clusters",
|
"description": "Easily obain SSL certificates from LetsEncrypt. Supports DNS-01 challenge. TypeScript ready.",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "(npmts)"
|
"test": "(npmts)"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "git+https://github.com/pushrocks/cert.git"
|
"url": "git+https://gitlab.com/pushrocks/cert.git"
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"coreos",
|
"coreos",
|
||||||
@ -19,11 +19,15 @@
|
|||||||
"author": "Lossless GmbH",
|
"author": "Lossless GmbH",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/pushrocks/cert/issues"
|
"url": "https://gitlab.com/pushrocks/cert/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/pushrocks/cert#readme",
|
"homepage": "https://gitlab.com/pushrocks/cert#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"letsencrypt": "^1.4.4"
|
"beautylog": "^5.0.12",
|
||||||
|
"cflare": "0.0.2",
|
||||||
|
"letsencrypt": "^1.4.4",
|
||||||
|
"smartcli": "^1.0.2",
|
||||||
|
"smartfile": "^3.0.10"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"npmts-g": "^5.2.6"
|
"npmts-g": "^5.2.6"
|
||||||
|
2
ts/cert.hook.ts
Normal file
2
ts/cert.hook.ts
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import * as smartcli from "smartcli";
|
||||||
|
import * as cflare from "cflare";
|
0
ts/cert.paths.ts
Normal file
0
ts/cert.paths.ts
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import * as beautylog from "beautylog";
|
||||||
|
import * as path from "path";
|
||||||
|
import * as smartfile from "smartfile";
|
||||||
|
beautylog.info("installing letsencrypt.sh locally...");
|
||||||
|
smartfile.remote.toFs(
|
||||||
|
"https://raw.githubusercontent.com/lukas2511/letsencrypt.sh/master/letsencrypt.sh",
|
||||||
|
path.join(__dirname,"assets/","le.sh")
|
||||||
|
).then(() => {
|
||||||
|
beautylog.success("Done!");
|
||||||
|
});
|
Reference in New Issue
Block a user