commit3
This commit is contained in:
parent
4c3a8a5a2a
commit
237040cadf
3 changed files with 14 additions and 4 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,3 +7,4 @@ outputDir/
|
||||||
client/package-lock.json
|
client/package-lock.json
|
||||||
package-lock.json
|
package-lock.json
|
||||||
public/img/.tinypng-sigs
|
public/img/.tinypng-sigs
|
||||||
|
acme/
|
||||||
|
|
10
bin/www
10
bin/www
|
@ -10,10 +10,14 @@ var http = require("http");
|
||||||
var fs = require("fs");
|
var fs = require("fs");
|
||||||
var https = require("https");
|
var https = require("https");
|
||||||
|
|
||||||
|
const key = fs.readFileSync('./acme/etc/live/palmpay.io/privkey.pem', 'utf8');
|
||||||
|
const cert = fs.readFileSync('./acme/etc/live/palmpay.io/cert.pem', 'utf8');
|
||||||
|
const ca = fs.readFileSync('./acme/etc/live/palmpay.io/chain.pem', 'utf8');
|
||||||
|
|
||||||
var ssl_options = {
|
var ssl_options = {
|
||||||
key: fs.readFileSync('./acme/etc/live/palmpay.io/privkey.pem'),
|
key: key,
|
||||||
cert: fs.readFileSync('./acme/etc/live/palmpay.io/cert.pem'),
|
cert: cert,
|
||||||
ca: fs.readFileSync('./acme/etc/live/palmpay.io/fullchain.pem')
|
ca: ca
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,3 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
echo "Generating SSL..."
|
||||||
cd /root/website
|
cd /root/website
|
||||||
greenlock certonly --webroot-path public --acme-version draft-11 --acme-url https://acme-v02.api.letsencrypt.org/dit.org/directory --agree-tos --email <EMAIL> --domains <--domains palmpay.io,palmpay.io <--- example> --community-member --config-dir ./acme/etc
|
greenlock certonly --webroot-path public \
|
||||||
|
--acme-version draft-11 --acme-url https://acme-v02.api.letsencrypt.org/directory \
|
||||||
|
--agree-tos --email <EMAIL> --domains < --domains palmpay.io,www.palmpay.io <- example > \
|
||||||
|
--community-member \
|
||||||
|
--config-dir ./acme/etc
|
Loading…
Reference in a new issue