File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 |
Original file line number Diff line number Diff 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 } ;
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments