docs
Environment (.env)

Configuration

The .env file in WP AutoFlow is strictly for Infrastructure Connection.

All application settings (like OpenAI Keys, DeepSeek Keys, Proxies, and Prompts) are managed dynamically inside the Settings Dashboard in the UI, not in this file.

The .env File

Copy .env.example to .env to get started:

cp .env.example .env
⚠️

Restart Required: Any changes made to the .env file require a full restart of the application container to take effect.

Server & Authentication

These are the only variables required to start the application server.

VariableDescriptionDefault
PORTThe network port the backend API will listen on.3000
NODE_ENVEnvironment mode. Use production for live deployments.development
JWT_SECRETRequired. A random string used to sign security tokens.-

Infrastructure (Database & Queue)

Connection strings for your persistence layer.

Docker Users: If running via Docker Compose, keep the defaults below. The internal networking handles the hostnames.

VariableDescriptionDefault (Docker)Default (Local)
MONGO_URIMongoDB Connection String.mongodb://mongo:27017/wp-autoflowmongodb://localhost:27017...
REDIS_HOSTHostname of the Redis server.redislocalhost
REDIS_PORTPort of the Redis server.63796379

Where are the other settings?

Looking for OpenAI API Key, DeepSeek Key, or Scraper Options?

  1. Start the application.
  2. Login as Admin.
  3. Navigate to the Settings page on the sidebar.

These configurations are stored in the database to allow real-time updates without restarting the server.