BREAKING CHANGE(forwarding): Rename sniPassthrough export to httpsPassthrough for consistent naming and remove outdated forwarding example

This commit is contained in:
2025-05-09 15:47:31 +00:00
parent a455ae1a64
commit 2482c8ae6b
6 changed files with 13 additions and 134 deletions

View File

@ -12,7 +12,7 @@ const helpers = {
httpOnly,
tlsTerminateToHttp,
tlsTerminateToHttps,
sniPassthrough: httpsPassthrough
httpsPassthrough
};
tap.test('ForwardingHandlerFactory - apply defaults based on type', async () => {
@ -188,7 +188,7 @@ tap.test('Helper Functions - create https-terminate-to-https config', async () =
});
tap.test('Helper Functions - create https-passthrough config', async () => {
const config = helpers.sniPassthrough({
const config = helpers.httpsPassthrough({
target: { host: 'localhost', port: 443 }
});
expect(config.type).toEqual('https-passthrough');

View File

@ -12,7 +12,7 @@ const helpers = {
httpOnly,
tlsTerminateToHttp,
tlsTerminateToHttps,
sniPassthrough: httpsPassthrough
httpsPassthrough
};
tap.test('ForwardingHandlerFactory - apply defaults based on type', async () => {
@ -161,7 +161,7 @@ tap.test('Helper Functions - create https-terminate-to-https config', async () =
});
tap.test('Helper Functions - create https-passthrough config', async () => {
const config = helpers.sniPassthrough({
const config = helpers.httpsPassthrough({
target: { host: 'localhost', port: 443 }
});
expect(config.type).toEqual('https-passthrough');