Mint: Add slowapi (#481)

* Add slowapi

* fix startup

* adjust settings

* add rate limits to tx routes

* elastic
This commit is contained in:
callebtc
2024-03-23 02:25:19 +01:00
committed by GitHub
parent b288a6d50e
commit adeec000a7
9 changed files with 370 additions and 97 deletions

View File

@@ -86,10 +86,19 @@ LIGHTNING_FEE_PERCENT=1.0
# minimum fee to reserve
LIGHTNING_RESERVE_FEE_MIN=2000
# Management
# max peg-in amount in satoshis
# Limits
# Max peg-in amount in satoshis
# MINT_MAX_PEG_IN=100000
# max peg-out amount in satoshis
# Max peg-out amount in satoshis
# MINT_MAX_PEG_OUT=100000
# use to allow only peg-out to LN
# Use to allow only peg-out to LN
# MINT_PEG_OUT_ONLY=FALSE
# Rate limit requests to mint. Make sure that you can see request IPs in the logs.
# You may need to adjust your reverse proxy if you only see requests originating from 127.0.0.1
# MINT_RATE_LIMIT=TRUE
# Determines the number of all requests allowed per minute per IP
# MINT_GLOBAL_RATE_LIMIT_PER_MINUTE=60
# Determines the number of transactions (mint, melt, swap) allowed per minute per IP
# MINT_TRANSACTION_RATE_LIMIT_PER_MINUTE=20