Skip to main content

Configuration

@quik/http-express has no defaults/*.ts of its own — it reads the configuration declared by @quik/http. See that module's Config Keys for the full generated table.

  • http.session.store (memory, file, or redis) selects the session store driver during this module's setup(). file requires the session-file-store peer dependency and reads http.session.file.folder; redis requires connect-redis/ioredis and reads http.session.redis.*. Call QExpressEngine.setSessionStore(store) to override the driver manually instead.
  • http.session.secret / http.session.ttlSeconds configure the Express session middleware regardless of driver.
  • http.static.serve, http.static.path, http.static.folder, http.static.global control static file serving.
  • http.static.singlePageApplication.enable / .indexFile control the SPA fallback: HTML navigation requests without a file extension are rewritten to the index file, except under http.paths.api and http.paths.docs.
  • http.cookie.domain / http.cookie.secure are applied as defaults by QExpressContext.setCookie()/clearCookie(); endpoint code can override them per call.
  • DOCS_BASE_PATH (http.paths.docs) is where OpenAPI docs are exposed when @quik/openapi is loaded — this module only registers the docs route, it does not own the config key.