Use ENV variables to setup engines in the GUI

Signed-off-by: Teja Swaroop Pothala <tejaswaroop.pothala@kasmweb.com>
This commit is contained in:
stanfrbd 2025-02-11 14:18:56 +01:00 committed by Teja Swaroop Pothala
parent ae94f5588c
commit cfe64a2d31
No known key found for this signature in database
GPG key ID: DEBCE0B52FABDAAC

View file

@ -24,13 +24,12 @@ pip3 install -r requirements.txt
deactivate
# Create mandatory secrets.json
cat <<EOF > secrets.json
{
"proxy_url": "",
"gui_enabled_engines": ["reverse_dns", "rdap", "ipquery", "spur", "phishtank", "threatfox", "urlscan", "google", "github", "ioc_one_html", "ioc_one_pdf", "abusix", "hudsonrock"]
}
EOF
# Check if GUI_ENABLED_ENGINES is set else apply default
if [ -z ${GUI_ENABLED_ENGINES+x} ]; then
GUI_ENABLED_ENGINES=reverse_dns,rdap,ipquery,spur,phishtank,threatfox,urlscan,google,github,ioc_one_html,ioc_one_pdf,abusix,hudsonrock
fi
export GUI_ENABLED_ENGINES
# Cleanup for app layer
chown -R 1000:0 $HOME