Skip to content

Commit f889ffa

Browse files
committed
Supported ssl dhparam
1 parent 921b5f4 commit f889ffa

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ Server-side config.js settings
105105
| sslkeypath | `./cert/client.key` | ssl key path |
106106
| sslcertpath | `./cert/hackmd_io.crt` | ssl cert path |
107107
| sslcapath | `['./cert/COMODORSAAddTrustCA.crt']` | ssl ca chain |
108+
| dhparampath | `./cert/dhparam.pem` | ssl dhparam path |
108109
| tmppath | `./tmp/` | temp file path |
109110
| postgresqlstring | `postgresql://user:pass@host:port/hackmd` | PostgreSQL connection string, fallback to this when not set in environment |
110111
| mongodbstring | `mongodb://user:pass@host:port/hackmd` | MongoDB connection string, fallback to this when not set in environment |

app.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ if (config.usessl) {
4040
key: fs.readFileSync(config.sslkeypath, 'utf8'),
4141
cert: fs.readFileSync(config.sslcertpath, 'utf8'),
4242
ca: ca,
43+
dhparam: fs.readFileSync(config.dhparampath, 'utf8'),
4344
requestCert: false,
4445
rejectUnauthorized: false
4546
};

config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var config = {
2424
sslkeypath: 'change this',
2525
sslcertpath: 'change this',
2626
sslcapath: ['change this'],
27+
dhparampath: 'change this',
2728
usessl: usessl,
2829
getserverurl: function() {
2930
var url = domain;

0 commit comments

Comments
 (0)