mirror of
https://github.com/kasmtech/workspaces-images.git
synced 2026-07-30 05:20:15 +00:00
Use ENV variables to setup engines in the GUI
Signed-off-by: Teja Swaroop Pothala <tejaswaroop.pothala@kasmweb.com>
This commit is contained in:
parent
ae94f5588c
commit
cfe64a2d31
1 changed files with 6 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue