original-version
David 2018-08-13 20:19:25 +04:30
parent 4c3a8a5a2a
commit 237040cadf
No known key found for this signature in database
GPG Key ID: D19FF700A6D04B1C
3 changed files with 14 additions and 4 deletions

1
.gitignore vendored
View File

@ -7,3 +7,4 @@ outputDir/
client/package-lock.json
package-lock.json
public/img/.tinypng-sigs
acme/

10
bin/www
View File

@ -10,10 +10,14 @@ var http = require("http");
var fs = require("fs");
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 = {
key: fs.readFileSync('./acme/etc/live/palmpay.io/privkey.pem'),
cert: fs.readFileSync('./acme/etc/live/palmpay.io/cert.pem'),
ca: fs.readFileSync('./acme/etc/live/palmpay.io/fullchain.pem')
key: key,
cert: cert,
ca: ca
};
/**

View File

@ -1,3 +1,8 @@
#!/bin/bash
echo "Generating SSL..."
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