This commit is contained in:
Juergen Kunz
2025-07-17 15:34:58 +00:00
parent 82df9a6f52
commit b26abbfd87
7 changed files with 38 additions and 37 deletions

View File

@@ -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'
}