Iskra API Reference
    Preparing search index...

    Type Alias TrustProxy

    TrustProxy: boolean | number

    How many reverse proxies sit in front of the app, for resolving the client IP.

    • false / 0 (default): ignore forwarding headers and use the socket address. Any client can put anything in X-Forwarded-For, so trusting it without a proxy lets them pick their own rate-limit bucket.
    • true: shorthand for 1 (a single proxy such as nginx or a load balancer).
    • n: n trusted proxies. The client IP is the address n hops from the right of X-Forwarded-For + socket address — each proxy appends the address it received the request from, so entries further left than that were written by the client and are ignored.