Studio · Reference

Configuration reference

Keep Studio settings in the deployment directory’s config.yml, mounted at /app/config.yml in the container. See Deploy Studio to extract the template from the supplied image.

Use config.yml

Merge settings into existing sections without duplicate keys. Put passwords and keys in their corresponding fields and restrict file access. Recreate the Studio container after changes:

Bash
docker compose up -d --force-recreate studio

Application address and interface

FieldMeaning
app.publicOriginPublic scheme, host, and port without a path, such as https://studio.example.com; used for callbacks, email links, and push
app.sampleDataLoad sample data on first installation; use false for an empty deployment
client.app.titleApplication name shown in the UI; values under client are public, so never put credentials there
i18n.defaultLocaleDefault interface language; English when omitted

Studio uses /main by default. Connect runtimes and the CLI with the full URL, such as https://studio.example.com/main/.

Database

FieldMeaning
database.defaultDefault connection name, normally main
database.connections.main.dialectDatabase dialect; the template defaults to sqlite, while the deployment guide uses postgres
database.connections.mainConnection fields include host, port, database, username, password, and ssl for TLS
database.connections.main.schemaManagementUse managed for the Studio database
database.connections.main.migrations.autoRunSet to true to run migrations on startup
database.connections.main.seeds.autoRunSet to true to run database seeds on startup

See Deploy Studio for a complete PostgreSQL example. For an existing database, use its host, port, and credentials.

We recommend disabling JIT on the PostgreSQL server. See Start the services for configuration steps.

Administrator and sign-in

FieldMeaning
users.initialAdminInitial administrator username, email, and password; created only when the user table is empty. Later changes do not reset existing accounts
auth.emailAndPassword.enabledEnable password sign-in
auth.emailAndPassword.disableSignUpSet to true to disable self-registration for a team deployment
auth.emailAndPassword.autoSignInSign in automatically after registration; false in the deployment example
auth.passwordReset.enabledEnable password recovery; requires a mailer and the correct app.publicOrigin
auth.session.storeSessionInDatabaseThe template uses true to store sign-in sessions in the database

Encryption keys

FieldMeaning
secrets.keysOrdered list of version and key entries; the first encrypts new data, and the others decrypt existing data

Generate a key with openssl rand -hex 32. Back up the entire secrets.keys list; losing keys prevents decryption of stored credentials. Changing the current key invalidates sign-in sessions. Keep old keys until their data has been re-encrypted.

File storage and upload limits

FieldMeaning
drive.defaultDefault file disk, local by default
drive.disks.<name>Disk driver, location, and credentials; supports fs and s3
drive.disks.<name>.maxFileSizeMbSingle-file upload limit for the disk, in MiB; defaults to 20 and must be a positive integer

maxFileSizeMb applies to task, comment, and Agent conversation attachments on their destination disk. Restart Studio and reload the page after changes. Increase the reverse proxy limit with room for the multipart form; a configured api.bodyLimit must also accommodate the request. See File and artifact storage for driver examples.

API request limits

FieldMeaning
api.bodyLimitAPI request body limit, such as 60mb; the global limit is off by default, but routes may impose their own limits
api.timeoutHandler timeout, such as 30s; off by default, and does not cut off a streaming response that has started
api.rateLimitOptional max and window, such as 600 requests per 1m; counted per process and client connection address

Behind a reverse proxy, requests may share the proxy’s address and rate-limit budget. Account for this when setting api.rateLimit.

Email and notifications

FieldMeaning
mailers.defaultDefault mailer name, such as system
mailers.<name>SMTP: provider: smtp, host, port, secure, auth.user, auth.pass, and from. Resend: provider: resend, apiKey, and from
users.invitations.mailerInvitation mailer; falls back to mailers.default
auth.passwordReset.mailerPassword reset mailer; falls back to mailers.default
notification.channelsUse type: in-app for inbox channels and type: email for email channels, optionally selecting a mailer. Mailer configuration does not create notification channels
push.privateKey, push.contactPush private key and contact address; requires HTTPS

Invitations and password resets share the default mailer. Password recovery also needs auth.passwordReset.enabled. See Notifications and push for SMTP, Resend, and delivery checks.

Agents and run records

FieldMeaning
studio.agents.queuedExpiryHoursQueued work expiry, 24 hours by default; 0 waits indefinitely
studio.agents.managerIdleMinutesLead Agent idle recovery threshold, 15 minutes by default; 0 disables recovery
studio.agents.managerIdleSweepMinutesIdle check interval, 5 minutes by default; must be positive
agents.runs.retentionDaysRetention for completed run events and prompt snapshots, 14 days by default; 0 keeps them
agents.conversations.archivedRetentionDaysArchived conversation retention, 30 days by default; 0 keeps them
agents.skills.diskDisk for skill contents; defaults to drive.default

Git platforms

FieldMeaning
studio.git.apiBaseUrlsOverride self-hosted code platform API URLs by hostname; omit when the default URL works

Configure Git connections and authorization in the UI. See Code hosts.

Previews and release artifacts

FieldMeaning
releases.artifactArtifact storage; defaults to /app/storage/releases/artifacts, independently of drive.default
releases.maxArtifactSizeMBRelease artifact size limit, 256 MiB by default; separate from attachment maxFileSizeMb
releases.host.memoryBudgettargetRatio defaults to 0.7, appMemoryMb to 320, and reserveMb to 0; size for application peaks and server resources
releases.host.maxActiveAppsOptional active application limit; memory checks still apply
releases.host.launchPrefixCommand prefix for preview processes; can switch to a system user that cannot read Studio configuration
releases.dockerSet enabled: true for Docker runtimes; configure a fixed ingress port and reverse proxy
studio.releases.previewPublicUrlSeparate preview origin, such as https://studio-preview.example.com/{appId}/
studio.releases.previewEnvironmentSet to false to skip automatic preview environment creation

Use a separate origin for previews and a system user that cannot read Studio configuration. See Hosted environments for runtime options. Your team manages production deployments.

Logging

FieldMeaning
logging.levelLog level, info in the template
logging.fileFile logging enabled flag; template limits: retentionDays: 7, maxFileSizeMB: 10, maxTotalSizeMB: 500
logging.loggers.request.file.nameRequest log filename, request in the template
logging.consoleConsole enabled and pretty options; the template disables pretty output

Environment variables

Deployment platforms can inject the environment variables explicitly supported by Studio. These override their corresponding config.yml fields. Keep fields without a mapping in the file.

Compose uses .env for variable substitution in its own configuration; it does not automatically pass those values to Studio. Declare them in services.studio.environment or env_file. ${NAME} is not expanded inside config.yml.

Environment variableconfig.yml field or purpose
APP_PUBLIC_ORIGINapp.publicOrigin
APP_SAMPLE_DATAapp.sampleData
INITIAL_ADMIN_USERNAME / INITIAL_ADMIN_EMAIL / INITIAL_ADMIN_PASSWORDusers.initialAdmin.username / email / password
SECRETS_KEYSsecrets.keys — 2:<new-key>,1:<old-key>
DB_DIALECT / DB_HOST / DB_PORT / DB_DATABASE / DB_USERNAME / DB_PASSWORD / DB_SSL / DB_FILENAMEdatabase.connections.main.dialect / host / port / database / username / password / ssl / filename
MAILERS_DEFAULTmailers.default
MAILERS_SYSTEM_PROVIDER / MAILERS_SYSTEM_HOST / MAILERS_SYSTEM_PORT / MAILERS_SYSTEM_SECUREmailers.system.provider / host / port / secure
MAILERS_SYSTEM_USER / MAILERS_SYSTEM_PASSWORDmailers.system.auth.user / auth.pass
MAILERS_SYSTEM_API_KEYmailers.system.apiKey
MAILERS_SYSTEM_FROM / MAILERS_SYSTEM_REPLY_TO / MAILERS_SYSTEM_ENABLEDmailers.system.from / replyTo / enabled
WEB_PUSH_PRIVATE_KEYpush.privateKey
API_BODY_LIMIT / API_TIMEOUTapi.bodyLimit / api.timeout
STUDIO_MANAGER_IDLE_MINUTES / STUDIO_MANAGER_IDLE_SWEEP_MINUTESstudio.agents.managerIdleMinutes / managerIdleSweepMinutes
RELEASES_HOST_ENABLEDreleases.host.enabled
APP_CONFIG_FILEConfiguration path read at startup; /app/config.yml in the supplied image
APP_BASE_PATHMount path set at startup; /main in the supplied image
APP_SERVER_HOST / APP_SERVER_PORTListener address and port; 0.0.0.0 / 13000 in the supplied image

NocoBase docs assistant

Ask anything about NocoBase…

Each question is answered independently, without earlier questions or answers. Include all relevant context.