﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>---
url: https://docs.puppetflow.com/reference/configuration.md
---
# Configuration

Puppetflow is configured with environment variables. This page covers settings intended for instance administrators. Flow-specific options remain in the application.

The **Default** column shows the application fallback when a variable is absent. `.env.minimal.example` and the production Compose stack override some defaults for their deployment model.

## Application

| Variable | Default | Description |
| --- | --- | --- |
| `APP_NAME` | `Puppetflow` | Application name shown in the interface and generated messages. |
| `APP_ENV` | `production` | Environment name. |
| `APP_DEBUG` | `false` | Shows detailed errors when enabled. Keep disabled in production. |
| `APP_URL` | `http://localhost` | Public application URL used in generated links. |
| `APP_KEY` | - | Encryption key generated with `php artisan key:generate`. |
| `APP_DEFAULT_TIMEZONE` | `UTC` | Default timezone assigned to new users. |
| `APP_AUTO_MIGRATE` | `false` | Runs database migrations when the application container starts. |
| `APP_SERVER_WORKERS` | - | Number of workers used by the built-in PHP development server. It does not affect the production image. |
| `APP_MEMORY_LIMIT` | `512M` | Runtime memory limit applied to the web server, queue workers, and application commands in the official images. |
| `APP_QUEUES_COUNTER` | `1` | Number of indexed flow queues. It must match the available `queue-N` worker services. The production Compose files use `2`. |

### Safe mode

| Variable | Default | Description |
| --- | --- | --- |
| `APP_SAFE_MODE` | `false` | Bypasses normal authentication and signs in as an instance administrator. |

::: danger
Never enable `APP_SAFE_MODE` on a publicly accessible or production instance.
:::

### Licensing

| Variable | Default | Description |
| --- | --- | --- |
| `LICENSE_SERVER_URL` | `https://lic.puppetflow.com` | License server used to activate and refresh a license. |
| `LICENSE_MANAGED` | - | Base64-encoded license file supplied by a managed deployment. Store this value as a secret. |

## Database, queue, cache, and sessions

| Variable | Default | Description |
| --- | --- | --- |
| `DB_CONNECTION` | `pgsql` | Database driver. Supported values are `pgsql` and `sqlite`. |
| `DB_HOST` | `127.0.0.1` | Database host. |
| `DB_PORT` | `5432` | Database port. |
| `DB_DATABASE` | `laravel` | Database name. |
| `DB_USERNAME` | `root` | Database username. |
| `DB_PASSWORD` | - | Database password. |
| `DB_SSLMODE` | `prefer` | PostgreSQL SSL mode. |
| `DB_FOREIGN_KEYS` | `true` | Enables SQLite foreign key enforcement. |
| `DB_SQLITE_BUSY_TIMEOUT` | `5000` | SQLite lock wait timeout in milliseconds. |
| `DB_SQLITE_JOURNAL_MODE` | `WAL` | SQLite journal mode. |
| `DB_SQLITE_SYNCHRONOUS` | `NORMAL` | SQLite synchronization mode. |
| `DB_SQLITE_TRANSACTION_MODE` | `IMMEDIATE` | SQLite transaction mode. Puppetflow requires `IMMEDIATE`. |
| `QUEUE_CONNECTION` | `database` | Queue driver. Keep `database` unless using a durable external Redis service. |
| `DB_QUEUE_RETRY_AFTER` | `900` | Seconds before an unacknowledged database-queue job is retried. |
| `CACHE_STORE` | `database` | Cache store. Keep `database` unless using a durable external Redis service. |
| `SESSION_DRIVER` | `database` | Session storage driver. Keep `database` unless using a durable external Redis service. |
| `SESSION_LIFETIME` | `120` | Session lifetime in minutes. |
| `SESSION_ENCRYPT` | `false` | Encrypt session data. |
| `REDIS_CLIENT` | `phpredis` | Redis client. |
| `REDIS_HOST` | `127.0.0.1` | Redis host. |
| `REDIS_PORT` | `6379` | Redis port. |
| `REDIS_PASSWORD` | - | Redis password. |

The provided PostgreSQL container uses `puppetflow` for its database name and username. The application connection values must match the container configuration.

See [Database](/self-hosting/database) for PostgreSQL and SQLite deployment requirements.

The Redis container included in the production Compose stack is non-persistent and intended only for browser stream coordination. Do not point queues or sessions at it. PostgreSQL is the durable default; Redis application drivers require an external Redis service with persistence and backups.

## Social authentication

| Variable | Default | Description |
| --- | --- | --- |
| `SOCIALITE_ENABLED` | `false` | Master switch for social sign-in. |
| `SOCIALITE_GOOGLE_ENABLED` | `true` | Enables Google when social authentication is active. |
| `SOCIALITE_GOOGLE_CLIENT_ID` | - | Google OAuth client ID. |
| `SOCIALITE_GOOGLE_CLIENT_SECRET` | - | Google OAuth client secret. |
| `SOCIALITE_GOOGLE_REDIRECT_URI` | - | Google callback URL, usually `${APP_URL}/auth/google/callback`. |
| `SOCIALITE_GITHUB_ENABLED` | `true` | Enables GitHub when social authentication is active. |
| `SOCIALITE_GITHUB_CLIENT_ID` | - | GitHub OAuth client ID. |
| `SOCIALITE_GITHUB_CLIENT_SECRET` | - | GitHub OAuth client secret. |
| `SOCIALITE_GITHUB_REDIRECT_URI` | - | GitHub callback URL, usually `${APP_URL}/auth/github/callback`. |

## Browser gateway

| Variable | Default | Description |
| --- | --- | --- |
| `PINOKIO_ENABLED` | `true` | Enables the Pinokio browser gateway. |
| `PINOKIO_HOST` | `localhost` | Pinokio host. Use `pinokio` with the provided Compose service. |
| `PINOKIO_PORT` | `3000` | Pinokio port. |
| `PINOKIO_TOKEN` | - | Token shared by Puppetflow and Pinokio. |
| `PINOKIO_SECURE` | `false` | Uses `wss://` instead of `ws://`. |
| `PINOKIO_BROWSER_ARCHIVE_URL` | - | `.tar.gz` containing a Chromium-based `chrome` executable that Pinokio downloads on first start and launches instead of the bundled Chromium. See [Bring Your Own Browser](/self-hosting/bring-your-own-chrome). |
| `PINOKIO_CHROME_EXTRA_ARGS` | - | Extra whitespace-separated flags added to every browser launch. |
| `BROWSER_DISABLE_WEB_SECURITY` | `false` | Disables browser web security globally. |
| `BROWSER_USER_AGENT` | - | Instance-wide browser user agent. Workspace and flow settings override it. Empty uses the browser identity without its headless marker. |
| `BROWSER_LANGUAGE` | - | Instance-wide default browser language. Workspace and flow settings can override it. |
| `BROWSER_TIMEZONE` | - | IANA time zone applied to every browser session. Empty uses the host zone or derives one from the browser language. |
| `BROWSER_IDENTITY_LOG` | `true` | Whether run logs name the browser build serving the run (name, version, executable hash, user agent). Set to `false` on shared instances so users cannot read the exact browser version from their run logs. |
| `BROWSER_HIDE_CDP` | `true` | Reduces observable Chrome DevTools Protocol side effects. Set to `false` to preserve Puppeteer console and page-error events. |

When `BROWSER_HIDE_CDP=true`, the Runtime domain is disabled between navigations and Puppeteer's `pptr:` source markers are removed. This improves resistance to automation detection, but flow code cannot rely on `page.on('console')` or `page.on('pageerror')`.

### Grabber and blueprints

| Variable | Default | Description |
| --- | --- | --- |
| `GRABBER_CHROME_STORE_URL` | Chrome Web Store listing | Chrome installation link shown by the Grabber onboarding dialog. |
| `GRABBER_FIREFOX_STORE_URL` | Firefox Add-ons listing | Firefox installation link shown by the Grabber onboarding dialog. |
| `BLUEPRINTS_API_URL` | `https://puppetflow.com/api/blueprints` | API endpoint used to load public blueprints. |
| `DOCUMENTATION_URL` | `https://docs.puppetflow.com` | Base URL used by contextual documentation links in the application. |

### Outbound HTTP

| Variable | Default | Description |
| --- | --- | --- |
| `INTEGRATION_HTTP_ALLOW_HTTP` | `true` | Allows integrations to call endpoints over unencrypted HTTP. |
| `INTEGRATION_HTTP_ALLOW_PRIVATE` | `true` | Allows integrations to call private and loopback addresses. |
| `RUNNER_HTTP_REQUEST_ALLOW_PRIVATE` | `false` | Allows flow code running in the sandbox to call private and loopback addresses. |
| `RUNNER_HTTP_SNIFFING_MAX_BODY_BYTES` | `5242880` | Maximum response body size retained by each network capture. |

### Nodal run previews

| Variable | Default | Description |
| --- | --- | --- |
| `RUNNER_NODAL_PREVIEW_MAX_HISTORY_BYTES` | `1048576` | Maximum combined size of retained node snapshots and execution histories for one run. The most recent execution snapshots are removed first. |
| `RUNNER_NODAL_PREVIEW_MAX_EXECUTIONS_PER_NODE` | `3` | Maximum number of execution snapshots retained for each node. The first executions are kept; later ones are only counted. Each snapshot gets a share of the history budget, so raising this value also shrinks each retained iteration. |
| `RUNNER_NODAL_PREVIEW_MAX_STRING_CHARS` | `100` | Maximum length of a string value inside a snapshot. Longer strings are truncated with a `... (truncated)` suffix. |
| `RUNNER_INTERNAL_OUTPUT_MAX_BYTES` | `4194304` | Maximum size of the preview file the server accepts from a run. Above this size the preview is dropped and the nodal editor shows a notice instead of runtime values. |

Network capture bodies are never part of these snapshots: they are stored separately in the `flow_run_sniff_bodies` table, only for captures still referenced by a retained snapshot, and loaded on demand by the editor. They count toward the run storage size.

These limits affect only the run preview shown in the nodal editor. They do not change flow execution values or the final output. Restart queue workers after changing them.

### Managed proxies

| Variable | Default | Description |
| --- | --- | --- |
| `MANAGED_PROXIES` | - | JSON array of proxy servers provisioned as read-only resources in every workspace. Empty is equivalent to `[]`. |

Each entry accepts `label`, `scheme`, `host`, and `port`. It can also include `key`, `country_code`, `group`, `username`, and `password`.

```dotenv
MANAGED_PROXIES='[{"key":"shared-fr","label":"Shared France","scheme":"http","host":"proxy.example.com","port":8080,"country_code":"FR","group":"Managed","username":"user","password":"secret"}]'
```

`scheme` must be `http`, `https`, `socks4`, or `socks5`. `key` is an optional stable identifier used to synchronize the entry across configuration changes. It defaults to `label`. Define an explicit key if the label may be renamed, so flows keep the same proxy assignment.

Managed proxies appear in the normal proxy table and flow proxy selector. Workspace users can use them, but cannot edit or delete them. Credentials are encrypted in the database and are never sent to the browser.

Removing an entry from `MANAGED_PROXIES` removes it from each workspace during the next synchronization. Flows specifically assigned to that proxy are reset to no proxy.

## Live view

| Variable | Default | Description |
| --- | --- | --- |
| `BROWSER_STREAM_INTERNAL_URL` | `http://localhost:6080` | Stream URL used by Puppetflow services. |
| `BROWSER_STREAM_INTERNAL_PORT` | `6080` | Stream server port. |
| `BROWSER_STREAM_PUBLIC_URL` | `http://localhost:6080` | Stream URL reached by users' browsers. |
| `BROWSER_STREAM_ALLOWED_ORIGINS` | `*` | Comma-separated application origins accepted by the stream server. Restrict this to the application origin in production. |
| `BROWSER_STREAM_SECRET` | - | Shared secret used to sign and verify stream access tokens. Must contain at least 32 characters. |
| `BROWSER_STREAM_BIND_ADDRESS` | `0.0.0.0` | Host address on which Compose publishes the stream server. |
| `BROWSER_STREAM_PUBLIC_PORT` | `6080` | Host port on which Compose publishes the stream server. |
| `FLOW_RUN_SCREENCAST_QUALITY` | `60` | Live-view image quality. |
| `FLOW_RUN_SCREENCAST_NTH_FRAME` | `1` | Sends one frame out of every configured number. |

## Run storage

| Variable | Default | Description |
| --- | --- | --- |
| `FLOW_EXECUTION_DIR` | `data/execution` | Temporary workspace used while a flow run is active. |
| `APP_STORAGE_DISK` | `puppetflow-local` | Durable storage backend for completed run artifacts and application uploads. |
| `APP_STORAGE_LOCAL_ROOT` | `data/storage` | Local storage path used by the `puppetflow-local` backend. |
| `APP_STORAGE_S3_PREFIX` | - | Optional key prefix used by the `puppetflow-s3` backend. |
| `APP_STORAGE_R2_PREFIX` | - | Optional key prefix used by the `puppetflow-r2` backend. |

See [Storage](/self-hosting/storage) for backend credentials and migration steps.

## MCP and OAuth

| Variable | Default | Description |
| --- | --- | --- |
| `PASSPORT_PRIVATE_KEY` | - | OAuth signing private key. |
| `PASSPORT_PUBLIC_KEY` | - | OAuth signing public key. |
| `PASSPORT_CONNECTION` | - | Optional database connection used by OAuth. |
| `MCP_BROKER_ENDPOINT` | `https://mcp.puppetflow.com/mcp` | Universal MCP broker endpoint shown in workspace settings. |
| `MCP_BROKER_CALLBACK_URL` | `https://mcp.puppetflow.com/oauth/tenant/callback` | Broker callback accepted during tenant delegation. |
| `MCP_CLIENT_ALLOW_HTTP` | `false` | Allows outbound MCP client connections over unencrypted HTTP. |
| `MCP_CLIENT_ALLOW_PRIVATE` | `false` | Allows outbound MCP client connections to private or loopback addresses. |

MCP token access does not require OAuth keys. OAuth clients require valid Passport keys.

## Mail

### Incoming mail

| Variable | Default | Description |
| --- | --- | --- |
| `MAILBOX_SMTP_PORT` | `2525` | Host port published for incoming mailbox email. |

### Outgoing mail

| Variable | Default | Description |
| --- | --- | --- |
| `MAIL_MAILER` | `log` | Mail transport. Use `smtp` to send invitations. |
| `MAIL_SCHEME` | - | SMTP scheme, such as `tls` or `smtps`. |
| `MAIL_HOST` | `127.0.0.1` | SMTP host. |
| `MAIL_PORT` | `2525` | SMTP port. |
| `MAIL_USERNAME` | - | SMTP username. |
| `MAIL_PASSWORD` | - | SMTP password. |
| `MAIL_FROM_ADDRESS` | `noreply@puppetflow.com` | Sender address. |
| `MAIL_FROM_NAME` | `Puppetflow` | Sender nam