Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions cashu/mint/startup.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@

logger.debug(f"{key}: {value}")

if settings.mint_rate_limit_proxy_trust:
logger.warning(
"WARNING: mint_rate_limit_proxy_trust is enabled! "
"Ensure your mint is behind a reverse proxy (like Nginx, Caddy, or Cloudflare). "
"If it is exposed directly to the internet, clients can bypass rate limits "
"by spoofing the X-Forwarded-For or CF-Connecting-IP headers."
)

wallets_module = importlib.import_module("cashu.lightning")

backends: Dict[Method, Dict[Unit, LightningBackend]] = {}
Expand Down
Loading