mirror of
https://github.com/openfaas/faas.git
synced 2025-06-08 16:26:47 +00:00
Fix envvar handling in deploy_stack.ps1
Adds the missing $env:BASIC_AUTH and $env:AUTH_URL envvars to the windows deploy_stack.ps1 script. Signed-off-by: John McCabe <john@johnmccabe.net>
This commit is contained in:
parent
9fd8a59b89
commit
e244e5ca74
@ -74,16 +74,19 @@ if (Get-Command docker -errorAction SilentlyContinue)
|
|||||||
Write-Host "Disabling basic authentication for gateway.."
|
Write-Host "Disabling basic authentication for gateway.."
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
$env:BASIC_AUTH="false";
|
$env:BASIC_AUTH="false";
|
||||||
|
$env:AUTH_URL=""
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
Write-Host "Enabling basic authentication for gateway.."
|
Write-Host "Enabling basic authentication for gateway.."
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
$env:BASIC_AUTH="true";
|
||||||
|
$env:AUTH_URL="http://basic-auth-plugin:8080/validate"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "Deploying OpenFaaS core services"
|
Write-Host "Deploying OpenFaaS core services"
|
||||||
docker stack deploy func --compose-file ./docker-compose.yml --orchestrator swarm
|
docker stack deploy func --compose-file ./docker-compose.yml
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user