@ruvyxa/adapter-deno
v1.1.5
Published
Self-host Ruvyxa applications on the Deno runtime.
Maintainers
Readme
npm install @ruvyxa/adapter-denoimport { config } from 'ruvyxa/config'
import { deno } from '@ruvyxa/adapter-deno'
export default config({ adapter: deno() })Build with ruvyxa build, copy .ruvyxa/deploy/deno/, then run:
deno run -A --no-prompt server/index.mjsClient identity behind a proxy
The generated server believes X-Forwarded-For and X-Real-IP only from a connection whose peer is
loopback or listed in security.trustedProxyIps. From any other peer both headers are dropped
before the request is routed, because nothing in front of the server overwrote them and one caller
rotating a value would otherwise collect a fresh bucket per request from the built-in rate
middleware, the server-action rate limiter, and the action replay quota.
Behind a reverse proxy that is not on the same host — nginx or Traefik in another container, an ingress controller, a service mesh — list its address or range, or every visitor is counted as one client:
export default config({
security: { trustedProxyIps: ['10.0.0.0/8'] },
})