mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 11:34:15 -05:00
Supported ssl dhparam
This commit is contained in:
parent
921b5f4652
commit
f889ffaa9f
3 changed files with 3 additions and 0 deletions
|
@ -105,6 +105,7 @@ Server-side config.js settings
|
||||||
| sslkeypath | `./cert/client.key` | ssl key path |
|
| sslkeypath | `./cert/client.key` | ssl key path |
|
||||||
| sslcertpath | `./cert/hackmd_io.crt` | ssl cert path |
|
| sslcertpath | `./cert/hackmd_io.crt` | ssl cert path |
|
||||||
| sslcapath | `['./cert/COMODORSAAddTrustCA.crt']` | ssl ca chain |
|
| sslcapath | `['./cert/COMODORSAAddTrustCA.crt']` | ssl ca chain |
|
||||||
|
| dhparampath | `./cert/dhparam.pem` | ssl dhparam path |
|
||||||
| tmppath | `./tmp/` | temp file path |
|
| tmppath | `./tmp/` | temp file path |
|
||||||
| postgresqlstring | `postgresql://user:pass@host:port/hackmd` | PostgreSQL connection string, fallback to this when not set in environment |
|
| postgresqlstring | `postgresql://user:pass@host:port/hackmd` | PostgreSQL connection string, fallback to this when not set in environment |
|
||||||
| mongodbstring | `mongodb://user:pass@host:port/hackmd` | MongoDB connection string, fallback to this when not set in environment |
|
| mongodbstring | `mongodb://user:pass@host:port/hackmd` | MongoDB connection string, fallback to this when not set in environment |
|
||||||
|
|
1
app.js
1
app.js
|
@ -40,6 +40,7 @@ if (config.usessl) {
|
||||||
key: fs.readFileSync(config.sslkeypath, 'utf8'),
|
key: fs.readFileSync(config.sslkeypath, 'utf8'),
|
||||||
cert: fs.readFileSync(config.sslcertpath, 'utf8'),
|
cert: fs.readFileSync(config.sslcertpath, 'utf8'),
|
||||||
ca: ca,
|
ca: ca,
|
||||||
|
dhparam: fs.readFileSync(config.dhparampath, 'utf8'),
|
||||||
requestCert: false,
|
requestCert: false,
|
||||||
rejectUnauthorized: false
|
rejectUnauthorized: false
|
||||||
};
|
};
|
||||||
|
|
|
@ -24,6 +24,7 @@ var config = {
|
||||||
sslkeypath: 'change this',
|
sslkeypath: 'change this',
|
||||||
sslcertpath: 'change this',
|
sslcertpath: 'change this',
|
||||||
sslcapath: ['change this'],
|
sslcapath: ['change this'],
|
||||||
|
dhparampath: 'change this',
|
||||||
usessl: usessl,
|
usessl: usessl,
|
||||||
getserverurl: function() {
|
getserverurl: function() {
|
||||||
var url = domain;
|
var url = domain;
|
||||||
|
|
Loading…
Reference in a new issue