feat(http): native TLS termination → https/wss via tls option
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
6 files changed
+117
-5
No files matched your search
@@ -0,0 +1,9 @@
|
||||
import { readFileSync } from 'fs';
|
||||
import { join } from 'path';
|
||||
|
||||
const dir = join(__dirname, '..', 'fixtures');
|
||||
|
||||
export const selfSignedTls = () => ({
|
||||
key: readFileSync(join(dir, 'key.pem')),
|
||||
cert: readFileSync(join(dir, 'cert.pem')),
|
||||
});
|
||||
Reference in new issue
Block a user