Copy
.env.example to .env before starting the server. CinePro Core will not start without a valid TMDB_API_KEY.Required vs optional
Required
TMDB_API_KEY— the server will crash on startup without it
Optional
PORT,HOST,PUBLIC_URL,NODE_ENV— sensible defaults are built in -CACHE_TYPE,REDIS_*— only needed for Redis-backed caching in production
Server configuration
The port CinePro Core listens on.
.env (development)
.env (production — custom port)
The hostname or IP address the server binds to.Use
localhost during development to keep the API private to your machine.
Set to 0.0.0.0 in production or Docker deployments to accept connections from the LAN or internet..env (development)
.env (production / Docker)
The publicly accessible base URL of your CinePro Core instance. Used by the OMSS framework when generating absolute links in API responses (for example, stream URLs returned to clients).Leave it unset locally — the framework will fall back to
http://<HOST>:<PORT>..env (production)
Controls the runtime mode.
| Value | Behavior |
|---|---|
development | Verbose logging, detailed error messages, hot reload with npm run dev |
production | Clean console output, minimal error exposure, optimised for npm start |
.env (development)
.env (production)
TMDB configuration
Your TMDB (The Movie Database) API key. CinePro Core uses this for all metadata lookups — movie/show titles, posters, IDs, and more. The server will fail to start if this is missing or invalid.
Create a TMDB account
Go to themoviedb.org and sign up for a free account.
How long (in seconds) TMDB metadata responses are cached. The default is 24 hours (
86400).Lowering this value keeps metadata fresher but increases TMDB API calls. Raising it reduces API usage at the cost of occasionally stale data..env
Cache configuration
Selects the caching backend. Accepted values are
memory and redis.| Value | When to use |
|---|---|
memory | Development or single-instance deployments with no persistence requirement |
redis | Production deployments, especially where cache should survive restarts or be shared across instances |
.env (development)
.env (production)
When
CACHE_TYPE=redis, the REDIS_HOST, REDIS_PORT, and (optionally) REDIS_PASSWORD variables must also be set.Redis configuration
These variables are only required whenCACHE_TYPE=redis. If you are using memory cache you can leave them unset.
Hostname or IP of your Redis instance.
.env (local Redis)
.env (remote Redis / managed service)
Port your Redis instance listens on. The Redis default is
6379..env
Password for Redis authentication. Leave empty if your Redis instance has no password (e.g. a local dev instance).
.env (no password)
.env (with password)
Full .env reference
Development
A minimal.env for local development — memory cache, localhost binding, verbose logging.
.env
Production (with Redis)
A complete production.env with Redis caching and a public URL.
.env
Docker Compose (with built-in Redis)
When usingcompose.yml, the Redis host is the Docker service name (redis) rather than localhost.
.env