From 2674cfb5f1d39df567d8e541cb6a9705e83f83b7 Mon Sep 17 00:00:00 2001 From: Arc Date: Sat, 21 Feb 2026 09:26:20 +0000 Subject: [PATCH] whoops, forgot to add --- .env.example | 7 +++++++ pyproject.toml | 1 + 2 files changed, 8 insertions(+) diff --git a/.env.example b/.env.example index 6c3483f33..8c7a475c0 100644 --- a/.env.example +++ b/.env.example @@ -70,6 +70,13 @@ FORWARDED_ALLOW_IPS="*" # Inside this directory the `extensions` and `upgrades` sub-directories will be created. # LNBITS_EXTENSIONS_PATH="/path/to/some/dir" +# === WASM Extensions Sandbox Limits === +# LNBITS_WASM_TIMEOUT_SECONDS=1.0 +# LNBITS_WASM_FUEL=50000 +# LNBITS_WASM_MAX_MODULE_BYTES=1000000 +# LNBITS_WASM_MAX_DB_OPS_PER_MIN=120 +# LNBITS_WASM_MAX_INVOICE_OPS_PER_MIN=30 + # ID of the super user. The user ID must exist. # SUPER_USER="" diff --git a/pyproject.toml b/pyproject.toml index 449b3545a..770170033 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -51,6 +51,7 @@ dependencies = [ "pillow>=12.1.0", "python-dotenv>=1.2.1", "greenlet (>=3.3.0,<4.0.0)", + "wasmtime>=16.0.0", ] [project.scripts]