Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
fix: ingress scripts due to pipy upgrade (#299)
Browse files Browse the repository at this point in the history
Signed-off-by: Lin Yang <reaver@flomesh.io>
  • Loading branch information
reaver-flomesh committed Aug 3, 2023
1 parent b54fae0 commit fa69881
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions charts/fsm/components/scripts/ingress/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,23 @@
__isTLS: false,
})

.listen(
config?.http?.enabled
? (config?.http?.listen ? config.http.listen : 8000)
: 0
).link('inbound-http')
.branch(
Boolean(config?.http?.enabled), (
$=>$
.listen(config?.http?.listen || 8000)
.link('inbound-http')
)
)

.listen(
config?.tls?.enabled
? (config?.tls?.listen ? config.tls.listen : 8443)
: 0
).branch(
() => config?.sslPassthrough?.enabled === true, 'passthrough',
'inbound-tls'
.branch(
Boolean(config?.tls?.enabled), (
$=>$
.listen(config?.tls?.listen || 8443)
.branch(
() => config?.sslPassthrough?.enabled === true, 'passthrough',
'inbound-tls'
)
)
)

.pipeline('inbound-tls')
Expand Down

0 comments on commit fa69881

Please sign in to comment.