update
This commit is contained in:
@@ -24,10 +24,10 @@ export function createHttpRoute(
|
||||
},
|
||||
action: {
|
||||
type: 'forward',
|
||||
target: {
|
||||
targets: [{
|
||||
host: target.host,
|
||||
port: target.port
|
||||
}
|
||||
}]
|
||||
},
|
||||
name: options.name || `HTTP: ${Array.isArray(domains) ? domains.join(', ') : domains}`
|
||||
};
|
||||
@@ -53,10 +53,10 @@ export function createHttpsTerminateRoute(
|
||||
},
|
||||
action: {
|
||||
type: 'forward',
|
||||
target: {
|
||||
targets: [{
|
||||
host: target.host,
|
||||
port: target.port
|
||||
},
|
||||
}],
|
||||
tls: {
|
||||
mode: options.reencrypt ? 'terminate-and-reencrypt' : 'terminate',
|
||||
certificate: options.certificate || 'auto'
|
||||
@@ -83,10 +83,10 @@ export function createHttpsPassthroughRoute(
|
||||
},
|
||||
action: {
|
||||
type: 'forward',
|
||||
target: {
|
||||
targets: [{
|
||||
host: target.host,
|
||||
port: target.port
|
||||
},
|
||||
}],
|
||||
tls: {
|
||||
mode: 'passthrough'
|
||||
}
|
||||
|
Reference in New Issue
Block a user