Merge pull request #247 from talvasconcelos/fix/allowDisableAllExt
Small fix to disable all extensions
This commit is contained in:
commit
2b68ab301e
|
@ -17,6 +17,7 @@ LNBITS_DEFAULT_WALLET_NAME="LNbits wallet"
|
|||
LNBITS_DATA_FOLDER="./data"
|
||||
# LNBITS_DATABASE_URL="postgres://user:password@host:port/databasename"
|
||||
|
||||
# disable selected extensions, or use "all" to disable all extensions
|
||||
LNBITS_DISABLED_EXTENSIONS="amilk,ngrok"
|
||||
LNBITS_FORCE_HTTPS=true
|
||||
LNBITS_SERVICE_FEE="0.0"
|
||||
|
|
|
@ -29,6 +29,9 @@ class ExtensionManager:
|
|||
def extensions(self) -> List[Extension]:
|
||||
output = []
|
||||
|
||||
if "all" in self._disabled:
|
||||
return output
|
||||
|
||||
for extension in [
|
||||
ext for ext in self._extension_folders if ext not in self._disabled
|
||||
]:
|
||||
|
|
Loading…
Reference in New Issue
Block a user