StilgenStilmerce
Configuration

Environment Variables

Full reference for Stilmerce API environment variables.

Environment Variables

Application URLs

VariableRequiredDescription
APP_URLYesAPI's own public URL
FRONT_URLYesStorefront public URL
ADMIN_URLYesAdmin panel public URL (include /admin path)
CORS_ORIGINYesComma-separated list of allowed origins
PORTNoAPI port (default: 4000)

Database (PostgreSQL)

VariableRequiredDescription
DB_HOSTYesDatabase host
DB_PORTYesDatabase port (default: 5432)
DB_USERYesDatabase username
DB_PASSYesDatabase password
DB_NAMEYesDatabase name

Redis

VariableRequiredDescription
REDIS_HOSTYesRedis host
REDIS_PORTYesRedis port (default: 6379)

Security

These values cannot be changed after the first launch — changing them invalidates all existing sessions and password hashes.

VariableRequiredDescription
PASSWORD_PEPPERYesArgon2id pepper, minimum 64 hex characters. Generate with openssl rand -hex 32
JWT_ACCESS_SECRETYesJWT signing secret, minimum 32 characters
JWT_REFRESH_SECRETYesSeparate JWT refresh secret
JWT_ACCESS_EXPIRATIONNoAccess token lifetime (default: 7d)
JWT_REFRESH_EXPIRATIONNoRefresh token lifetime (default: 30d)

Email (SMTP)

VariableRequiredDescription
MAIL_HOSTYesSMTP server hostname
MAIL_PORTYesSMTP port (typically 587 or 465)
MAIL_USERYesSMTP username
MAIL_PASSYesSMTP password

Payment — İyzico (built-in)

VariableRequiredDescription
IYZICO_API_KEYYesİyzico API key
IYZICO_SECRET_KEYYesİyzico secret key
IYZICO_BASE_URLYeshttps://api.iyzipay.com (live) or https://sandbox-api.iyzipay.com (test)
IYZICO_SIGNATURE_VALIDATENoValidate webhook signatures (default: true)

File Storage

VariableRequiredDescription
USE_CLOUDINARYNotrue to use Cloudinary, false for local disk storage (default: false)
CLOUDINARY_CLOUD_NAMEIf CloudinaryCloudinary cloud name
CLOUDINARY_API_KEYIf CloudinaryCloudinary API key
CLOUDINARY_API_SECRETIf CloudinaryCloudinary API secret

Search (Typesense)

VariableRequiredDescription
TYPESENSE_ENABLEDNoEnable Typesense search (default: true)
TYPESENSE_HOSTYesTypesense server host
TYPESENSE_PORTYesTypesense port (default: 8108)
TYPESENSE_API_KEYYesTypesense admin API key
TYPESENSE_COLLECTIONNoCollection name (default: products)

Rate Limiting

VariableRequiredDescription
RATE_LIMIT_ENABLEDNoEnable rate limiting (default: true)
RATE_LIMIT_DEFAULT_LIMITNoRequests per window (default: 300)
RATE_LIMIT_DEFAULT_WINDOW_SECNoWindow duration in seconds (default: 60)
TRUST_PROXYNoSet true when running behind Nginx (enables X-Forwarded-For)

Installer & Swagger

VariableDescription
INSTALLER_DISABLEDSet true after installation is complete to disable the setup endpoint
SWAGGER_ENABLEDEnable Swagger UI (default: true in dev)
SWAGGER_PRODUCTION_ALLOWEDSet true to allow Swagger in production
SWAGGER_ACCESS_TOKENRequired when Swagger is enabled in production

Health Check

VariableDescription
HEALTH_ENABLEDEnable health check endpoints (default: true)
HEALTH_LIVE_TOKENToken for the liveness endpoint
HEALTH_READY_TOKENToken for the readiness endpoint

On this page