diff options
| author | Jannis R <mail@jannisr.de> | 2020-05-03 16:36:38 +0200 |
|---|---|---|
| committer | Jannis R <mail@jannisr.de> | 2020-05-03 16:36:38 +0200 |
| commit | be032e4a620576dc42b6814a6114e3fcbc18feb2 (patch) | |
| tree | 7e93a6520fdaad5cda55b5beaa0b98f3d81b5caf /server.js | |
| parent | 0e0eb67c7f43338bb2c28f4a354ef2ab95bae6ff (diff) | |
minor changes, docs :memo:
Diffstat (limited to 'server.js')
| -rw-r--r-- | server.js | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -15,8 +15,10 @@ const createGeminiServer = (opt = {}, onRequest) => { opt = {} } const { + cert, key, passphrase, tlsOpt, } = { + cert: null, key: null, passphrase: null, tlsOpt: {}, ...opt, } @@ -103,6 +105,7 @@ const createGeminiServer = (opt = {}, onRequest) => { // the request with a "transient certificate" to initiate a client // > certificate section. rejectUnauthorized: false, + cert, key, passphrase, ...tlsOpt, }, onConnection) |
