This commit is contained in:
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 client/package-lock.json
package-lock.json package-lock.json
public/img/.tinypng-sigs public/img/.tinypng-sigs
acme/

10
bin/www
View file

@ -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
}; };
/** /**

View file

@ -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