update
This commit is contained in:
@@ -42,7 +42,7 @@ export function createHttpRoute(
|
||||
// Create route action
|
||||
const action: IRouteAction = {
|
||||
type: 'forward',
|
||||
target
|
||||
targets: [target]
|
||||
};
|
||||
|
||||
// Create the route config
|
||||
@@ -82,7 +82,7 @@ export function createHttpsTerminateRoute(
|
||||
// Create route action
|
||||
const action: IRouteAction = {
|
||||
type: 'forward',
|
||||
target,
|
||||
targets: [target],
|
||||
tls: {
|
||||
mode: options.reencrypt ? 'terminate-and-reencrypt' : 'terminate',
|
||||
certificate: options.certificate || 'auto'
|
||||
@@ -152,7 +152,7 @@ export function createHttpsPassthroughRoute(
|
||||
// Create route action
|
||||
const action: IRouteAction = {
|
||||
type: 'forward',
|
||||
target,
|
||||
targets: [target],
|
||||
tls: {
|
||||
mode: 'passthrough'
|
||||
}
|
||||
@@ -243,7 +243,7 @@ export function createLoadBalancerRoute(
|
||||
// Create route action
|
||||
const action: IRouteAction = {
|
||||
type: 'forward',
|
||||
target
|
||||
targets: [target]
|
||||
};
|
||||
|
||||
// Add TLS configuration if provided
|
||||
@@ -303,7 +303,7 @@ export function createApiRoute(
|
||||
// Create route action
|
||||
const action: IRouteAction = {
|
||||
type: 'forward',
|
||||
target
|
||||
targets: [target]
|
||||
};
|
||||
|
||||
// Add TLS configuration if using HTTPS
|
||||
@@ -374,7 +374,7 @@ export function createWebSocketRoute(
|
||||
// Create route action
|
||||
const action: IRouteAction = {
|
||||
type: 'forward',
|
||||
target,
|
||||
targets: [target],
|
||||
websocket: {
|
||||
enabled: true,
|
||||
pingInterval: options.pingInterval || 30000, // 30 seconds
|
||||
@@ -432,10 +432,10 @@ export function createPortMappingRoute(options: {
|
||||
// Create route action
|
||||
const action: IRouteAction = {
|
||||
type: 'forward',
|
||||
target: {
|
||||
targets: [{
|
||||
host: options.targetHost,
|
||||
port: options.portMapper
|
||||
}
|
||||
}]
|
||||
};
|
||||
|
||||
// Create the route config
|
||||
@@ -500,10 +500,10 @@ export function createDynamicRoute(options: {
|
||||
// Create route action
|
||||
const action: IRouteAction = {
|
||||
type: 'forward',
|
||||
target: {
|
||||
targets: [{
|
||||
host: options.targetHost,
|
||||
port: options.portMapper
|
||||
}
|
||||
}]
|
||||
};
|
||||
|
||||
// Create the route config
|
||||
@@ -548,10 +548,10 @@ export function createSmartLoadBalancer(options: {
|
||||
// Create route action
|
||||
const action: IRouteAction = {
|
||||
type: 'forward',
|
||||
target: {
|
||||
targets: [{
|
||||
host: hostSelector,
|
||||
port: options.portMapper
|
||||
}
|
||||
}]
|
||||
};
|
||||
|
||||
// Create the route config
|
||||
@@ -609,10 +609,10 @@ export function createNfTablesRoute(
|
||||
// Create route action
|
||||
const action: IRouteAction = {
|
||||
type: 'forward',
|
||||
target: {
|
||||
targets: [{
|
||||
host: target.host,
|
||||
port: target.port
|
||||
},
|
||||
}],
|
||||
forwardingEngine: 'nftables',
|
||||
nftables: {
|
||||
protocol: options.protocol || 'tcp',
|
||||
|
Reference in New Issue
Block a user