Skip to main content

Environment Variables

Boolean flags default to false when unset.

VariableTypeDefaultConfig KeysDescriptionSource
API_BASE_PATHstring"/api/v1"http.paths.apiBase path for API routes. Config key: `http.paths.api`.http.ts
COOKIE_DOMAINstring"localhost"http.cookie.domainThe domain on which the application exposes the cookies. If your users try to use cookies outside your domain, this parameter will block them from using. We do not recommend the usage of cookies for storing important data. /http.ts
COOKIE_SECRETstring""http.cookie.secretSecret used to sign cookies. When set, `req.signedCookies` will contain verified, tamper-proof values. Leave empty to disable cookie signing. /http.ts
COOKIE_SECUREflaghttp.cookie.secureFlag to mark if a cookie is secure or not. When using HTTPS, you should ALWAYS mark the cookies as secure, even when you are using a Proxy in front. /http.ts
CORS_ALLOWED_HEADERSstringhttp.cors.allowedHeadersThe allowed headers in any request protected by CORS. If you want to allow all headers, do not set any value to this parameter. /http.ts
CORS_CREDENTIALSbooleanhttp.cors.credentialsThe allowed credentials in any request protected by CORS. /http.ts
CORS_EXPOSES_HEADERSstringhttp.cors.exposedHeadersThe exposed headers in any request protected by CORS. If you want to expose all headers, do not set any value to this parameter. /http.ts
CORS_MAX_AGEinthttp.cors.maxAgeSets the maximum age of any CORS request. /http.ts
CORS_METHODSstring"GET,HEAD,PUT,PATCH,POST,DELETE"http.cors.methodsThe HTTP Verbs/Methods for which we want to enable CORS. /http.ts
CORS_OPTIONS_SUCCESSint204http.cors.optionsSuccessStatuscomputedhttp.ts
CORS_ORIGINstring"*"http.cors.originThe list of IPs for which we enable the access to our application. If you want to enable access to everyone set the value to "*" or leave it as it is. /http.ts
CORS_PREFLIGHTbooleanhttp.cors.preflightContinuePass the CORS preflight response to the next handler. /http.ts
DOCS_BASE_PATHstring"/api/docs"http.paths.docsBase path for documentation routes. Config key: `http.paths.docs`.http.ts
DOCS_ENDPOINTS_OPENAPIflagdocs.endpoints.openapi.fileDocs endpoints toggles. Config key: `docs.endpoints.openapi.file`.docs.ts
DOCS_ENDPOINTS_OPENAPI_UIflagdocs.endpoints.openapi.uiDocs endpoints toggles. Config key: `docs.endpoints.openapi.ui`.docs.ts
DOCS_ENDPOINTS_SCALARflagdocs.endpoints.scalarDocs endpoints toggles. Config key: `docs.endpoints.scalar`.docs.ts
DOCS_EXPOSEflagdocs.exposeEnable docs endpoints. Config key: `docs.expose`.docs.ts
DOCS_PASSWORDstring"openapi"docs.security.passwordDocs basic auth password. Config key: `docs.security.password`.docs.ts
DOCS_SECUREDflagdocs.security.enabledRequire auth for docs endpoints. Config key: `docs.security.enabled`.docs.ts
DOCS_USERNAMEstring"openapi"docs.security.usernameDocs basic auth username. Config key: `docs.security.username`.docs.ts
HTTP_BODY_JSON_LIMITstring"1mb"http.body.jsonLimitRequest body parsing limits. /http.ts
HTTP_BODY_TEXT_LIMITstring"1mb"http.body.textLimitHTTP body parsing limits. Config key: `http.body.textLimit`.http.ts
HTTP_BODY_URLENCODED_LIMITstring"1mb"http.body.urlencodedLimitHTTP body parsing limits. Config key: `http.body.urlencodedLimit`.http.ts
HTTP_HEADERS_TIMEOUT_MSint0http.timeouts.headersMsHTTP timeout settings. Config key: `http.timeouts.headersMs`.http.ts
HTTP_LISTENstring"127.0.0.1"http.listenThe IP address on which we want to listen for connections. If you intend to use a Proxy server in front of the application, we recommend using the default value: "127.0.0.1". Otherwise, set it to "0.0.0.0" or a specific ip. /http.ts
HTTP_PORTint7200http.port, http.urls.app, http.urls.uiThe PORT on which we listen for connections. Customize the value for this parameter as needed. /http.ts
HTTP_REQUEST_TIMEOUT_MSint0http.timeouts.requestMsHTTP server timeout configuration. /http.ts
HTTP_SHUTDOWN_TIMEOUT_MSint15000http.timeouts.shutdownMsConfiguration value from environment. Config key: `http.timeouts.shutdownMs`.http.ts
HTTP_STATIC_CONTENT_FOLDERstring"./public"http.static.folderStatic content serving settings. Config key: `http.static.folder`.http.ts
HTTP_STATIC_CONTENT_GLOBALflaghttp.static.globalStatic content serving settings. Config key: `http.static.global`.http.ts
HTTP_STATIC_CONTENT_PATHstring""http.static.pathStatic content serving settings. Config key: `http.static.path`.http.ts
HTTP_STATIC_CONTENT_SERVEflaghttp.static.serveStatic content serving settings. Config key: `http.static.serve`.http.ts
HTTP_STATIC_SINGLE_PAGE_APPLICATION_ENABLEflaghttp.static.singlePageApplication.enablecomputedhttp.ts
HTTP_STATIC_SINGLE_PAGE_APPLICATION_INDEX_FILEstring"index.html"http.static.singlePageApplication.indexFileConfiguration value from environment. Config key: `http.static.singlePageApplication.indexFile`.http.ts
HTTP_URLS_APPurlcomputedhttp.urls.appThe URL that can be used to access the application. This URL is used in various APIs that need to sign/display data about the application. For example, the Documentation API that exposes the route metadata will use this `http.urls.app` parameter to generate valid URL calls. /http.ts
HTTP_URLS_UIurlcomputedhttp.urls.uiThe URL that can be used to access the frontend application. /http.ts
LOG_HTTP_FORMATstring"combined"logs.httpFormatThe format used to display the log information for HTTP requests. The supported formats are: "combined", "compact", "dev", "short", "tiny" /logs.ts
SESSION_FILE_FOLDERstring".sessions"http.session.file.folderConfiguration value from environment. Config key: `http.session.file.folder`.http.ts
SESSION_REDIS_DBint0http.session.redis.dbConfiguration value from environment. Config key: `http.session.redis.db`.http.ts
SESSION_REDIS_HOSTstring"127.0.0.1"http.session.redis.hostConfiguration value from environment. Config key: `http.session.redis.host`.http.ts
SESSION_REDIS_KEY_PREFIXstring"quik:session:"http.session.redis.keyPrefixConfiguration value from environment. Config key: `http.session.redis.keyPrefix`.http.ts
SESSION_REDIS_PASSWORDstring""http.session.redis.passwordConfiguration value from environment. Config key: `http.session.redis.password`.http.ts
SESSION_REDIS_PORTint6379http.session.redis.portConfiguration value from environment. Config key: `http.session.redis.port`.http.ts
SESSION_SECRETstring"thisIsAS3cret"http.session.secretSince the session should be encoded and not to be easily seen by the user, a secret is required for the session configuration. /http.ts
SESSION_STOREstring"memory"http.session.storeSession store driver: `memory`, `file`, or `redis`. Install the required peer dependency for non-memory drivers in `@quik/http-express`: - `file`: requires `session-file-store`. - `redis`: requires `connect-redis` and `ioredis`. /http.ts
SESSION_TTL_SECONDSint86400http.session.ttlSecondsSession TTL in seconds forwarded to the store driver. /http.ts