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 .envRestart 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.
| Variable | Description | Default |
|---|---|---|
PORT | The network port the backend API will listen on. | 3000 |
NODE_ENV | Environment mode. Use production for live deployments. | development |
JWT_SECRET | Required. 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.
| Variable | Description | Default (Docker) | Default (Local) |
|---|---|---|---|
MONGO_URI | MongoDB Connection String. | mongodb://mongo:27017/wp-autoflow | mongodb://localhost:27017... |
REDIS_HOST | Hostname of the Redis server. | redis | localhost |
REDIS_PORT | Port of the Redis server. | 6379 | 6379 |
Where are the other settings?
Looking for OpenAI API Key, DeepSeek Key, or Scraper Options?
- Start the application.
- Login as Admin.
- Navigate to the Settings page on the sidebar.
These configurations are stored in the database to allow real-time updates without restarting the server.