Skip to content

Commit 37155ea

Browse files
committed
chore: update readme
1 parent 9e994c7 commit 37155ea

File tree

3 files changed

+64
-6
lines changed

3 files changed

+64
-6
lines changed

README.md

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,40 @@
1-
# it-acme-client
1+
# acme-client
2+
Simple scalable automatic solution for obtaining SSL certificates.
3+
4+
## Example
5+
```typescript
6+
import * as https from 'https';
7+
import {AcmeClient} from '@interactivetraining/acme-client';
8+
9+
new AcmeClient({
10+
domain: 'my-domain.com',
11+
12+
googleCloud: {
13+
projectId: process.env.GOOGLE_CLOUD_PROJECT_ID,
14+
bucketName: process.env.GOOGLE_CLOUD_SSL_BUCKET_NAME,
15+
credentials: {
16+
email: process.env.GOOGLE_CLOUD_CLIENT_EMAIL,
17+
privateKey: process.env.GOOGLE_CLOUD_CLIENT_PRIVATE_KEY
18+
}
19+
},
20+
cloudflare: {
21+
email: process.env.CLOUDFLARE_EMAIL,
22+
apiKey: process.env.CLOUDFLARE_API_KEY
23+
},
24+
fileNames: {
25+
cert: 'my-domain-prod-cert.pem',
26+
caCert: 'my-domain-prod-caCert.pem',
27+
privateKey: 'my-domain-prod-private-key.pem',
28+
accountKey: 'my-domain-prod-account-key.pem'
29+
},
30+
acmeServer: 'prod',
31+
agreeTerms: true
32+
}).getCert().then((res) => {
33+
https.createServer({
34+
cert: res.cert,
35+
key: res.key
36+
}, () => {
37+
38+
});
39+
});
40+
```

package.json

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,41 @@
11
{
2-
"name": "it-acme-client",
2+
"name": "@interactivetraining/acme-client",
33
"version": "0.0.1",
4-
"description": "",
4+
"description": "Simple scalable automatic solution for obtaining SSL certificates.",
5+
"keywords": [
6+
"acme client",
7+
"lets encrypt",
8+
"ssl",
9+
"cloud",
10+
"typescript"
11+
],
512
"main": "dist/index.js",
13+
"types": "dist/index.d.ts",
614
"scripts": {
715
"build": "tsc"
816
},
9-
"author": "Interactive Training",
17+
"author": "Interactive Training (http://interactive.training)",
1018
"license": "MIT",
1119
"devDependencies": {
20+
"@types/node": "^11.13.5",
1221
"typescript": "^3.4.3"
1322
},
1423
"dependencies": {
1524
"@google-cloud/storage": "^2.5.0",
16-
"@types/node": "^11.13.4",
1725
"cloudflare": "^2.4.1",
1826
"letiny": "^0.2.1-1",
1927
"reflect-metadata": "^0.1.13",
2028
"typedi": "^0.8.0"
29+
},
30+
"homepage": "https://github.com/InteractiveTraining/acme-client#acme-client",
31+
"maintainers": [
32+
"Adam LaCombe (https://github.com/adamlacombe)"
33+
],
34+
"bugs": {
35+
"url": "https://github.com/InteractiveTraining/acme-client/issues"
36+
},
37+
"repository": {
38+
"type": "git",
39+
"url": "git+https://github.com/InteractiveTraining/acme-client.git"
2140
}
2241
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {GCloudStorageService} from './services/gCloudStorageService';
66
import {ConfigService} from './services/configService';
77
import {CloudflareService} from './services/cloudflareService';
88

9-
export class itAcmeClient {
9+
export class AcmeClient {
1010
config: ConfigService;
1111
gCloudStorage: GCloudStorageService;
1212
cloudflareService: CloudflareService;

0 commit comments

Comments
 (0)