From 4fb8489328cf4fb414d82f235ac2a9b6bfa4f243 Mon Sep 17 00:00:00 2001 From: Ajin Abraham Date: Tue, 3 Nov 2020 16:00:46 -0700 Subject: [PATCH] Update settings.py --- MobSF/settings.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/MobSF/settings.py b/MobSF/settings.py index 4512dfd5..5bafb50e 100644 --- a/MobSF/settings.py +++ b/MobSF/settings.py @@ -208,6 +208,10 @@ STATIC_ROOT = os.path.join(BASE_DIR, 'static') STATICFILES_STORAGE = 'whitenoise.storage.CompressedStaticFilesStorage' # 256MB DATA_UPLOAD_MAX_MEMORY_SIZE = 268435456 +# REST API only mode +# Set MOBSF_API_ONLY to 1 to enable REST API only mode +# In this mode, web UI related urls are disabled. +API_ONLY = os.getenv('MOBSF_API_ONLY', '0') # =================== # USER CONFIGURATION @@ -227,11 +231,6 @@ else: # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # MOBSF USER CONFIGURATIONS # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - - # REST API only mode - # Set MOBSF_API_ONLY to 1 to enable REST API only mode - # In this mode, web UI related urls are disabled. - API_ONLY = os.getenv('MOBSF_API_ONLY', '0') # ------------------------- # STATIC ANALYZER SETTINGS # -------------------------