bbscanner / start.sh
Wuhp
Remove configured API keys and generate internal ZAP secret automatically
0b5d841
Raw History Blame Contribute Delete
337 Bytes
#!/bin/sh
set -eu
export ZAP_API_KEY="$(python3 -c 'import secrets; print(secrets.token_urlsafe(36))')"
/zap/zap.sh -daemon -host 127.0.0.1 -port 8090 -config "api.key=${ZAP_API_KEY}" -config api.addrs.addr.name=127.0.0.1 -config api.addrs.addr.regex=false > /tmp/asfb-zap.log 2>&1 &
exec uvicorn app.main:app --host 0.0.0.0 --port 7860