rancher-charts/charts/rancher-windows-exporter/0.1.100/scripts/proxy-entry.ps1

12 lines
209 B
PowerShell

# default
$listenPort = "9796"
if ($env:LISTEN_PORT) {
$listenPort = $env:LISTEN_PORT
}
# format "UDP:4789 TCP:8080"
$winsPublish = $('TCP:{0}' -f $listenPort)
wins.exe cli proxy --publish $winsPublish