Skip to content

Configuration Reference ​

This page lists every key of config.yaml with its environment variable, type, and default. How the file, variables, and flags combine is explained in Configuration; the server settings are explained by task in Server Configuration.

SectionCovers
ServerListen address, base path, TLS, permissions, terminal, webhooks, cache
Network AccessHost names, origins, client IPs
Logging and UpdatesLog format, access logs, update checks
ExecutionExecution mode, shell, timezone, environment passed to steps
UINavigation bar, DAG list, log charset
AuthenticationAuth mode, builtin and basic auth, OIDC, proxy
PathsEvery directory and file location, DAG discovery
QueuesGlobal queues
SchedulerLocks, zombie detection, failover, backfill
Process Liveness and ShutdownHeartbeats, signal handling
Coordinator, Worker, Peer ConnectionsDistributed execution
Remote NodesOther Dagu servers in the UI
Audit, Events, and MonitoringAudit log, event store, resource history, live updates
Git Sync, TunnelRepository sync, Tailscale
License and Dagu ConsoleLicense, Console reports, remote access
Secret ProvidersDefaults for Vault, Kubernetes, AWS, GCP, Azure, Alibaba
Browser, Agent Tools, Untrusted Steps, OpenCodeStep settings of this host
Environment VariablesVariables outside config.yaml, legacy names

Configuration File ​

Dagu reads config.yaml from its config directory, ~/.config/dagu or $DAGU_HOME, or from the file given with --config. See File Locations.

yaml
# ~/.config/dagu/config.yaml
host: 0.0.0.0
port: 8080
auth:
  mode: builtin
paths:
  data_dir: /var/lib/dagu/data
queues:
  config:
    - name: batch
      max_concurrency: 2

How to read the tables:

  • Key is the YAML path, such as auth.mode for mode under auth:. [] marks a list item.
  • The variable below a key sets the same value, and wins over the file. A key without a variable is set in the file only.
  • In defaults, <config dir> and <data dir> are the directories from File Locations, and {data_dir} is the value of paths.data_dir.
  • A list variable takes comma-separated values, such as DAGU_ALLOWED_HOSTS=a.example.com,b.example.com.

dagu config --values prints the value and source of each setting that has a variable. dagu schema config prints the JSON schema of the file.

Server ​

KeyTypeDefaultDescription
host
DAGU_HOST
string127.0.0.1Bind address. Flag --host.
port
DAGU_PORT
int8080HTTP port. Flag --port.
public_url
DAGU_PUBLIC_URL
stringnoneURL users open, used in generated links and host checks.
base_path
DAGU_BASE_PATH
stringnonePath prefix of every route, such as /dagu. See Serve Under a Base Path.
api_base_path
DAGU_API_BASE_PATH
string/api/v1API path inside base_path.
headless
DAGU_HEADLESS
boolfalseServe the API without the Web UI.
tls.cert_file
DAGU_CERT_FILE
pathnoneTLS certificate. With tls.key_file, the server serves HTTPS.
tls.key_file
DAGU_KEY_FILE
pathnoneTLS private key.
tls.ca_filepathnoneCA certificate that dagu connection commands trust when they call this server over HTTPS.
metrics
DAGU_SERVER_METRICS
stringprivateprivate requires credentials for /api/v1/metrics; public does not.
cache
DAGU_CACHE
stringnormalIn-memory cache size: low, normal, or high. See Cache.
permissions.write_dagsbooltrueAllow creating, editing, and deleting DAGs.
permissions.run_dagsbooltrueAllow starting, retrying, stopping, and approving runs.
terminal.enabled
DAGU_TERMINAL_ENABLED
boolfalseWeb terminal for admins. Requires builtin auth.
terminal.max_sessions
DAGU_TERMINAL_MAX_SESSIONS
int5Concurrent terminal sessions.
webhooks.max_payload_size
DAGU_WEBHOOKS_MAX_PAYLOAD_SIZE
int1048576Largest webhook request body, in bytes.

Network Access ​

KeyTypeDefaultDescription
allowed_hosts
DAGU_ALLOWED_HOSTS
listnoneExtra host names accepted where no login is needed. .example.com matches subdomains; * turns the check off. See Allowed Host Names.
cors_allowed_origins
DAGU_CORS_ALLOWED_ORIGINS
listnoneOrigins allowed to call the server from a browser. * allows any origin without credentials.
ip_access.allowed_ips
DAGU_IP_ACCESS_ALLOWED_IPS
listnoneAddresses and CIDR ranges allowed to reach the server. Empty allows all.
ip_access.trusted_proxies
DAGU_IP_ACCESS_TRUSTED_PROXIES
listnoneProxies whose forwarded client IP and identity headers are trusted. When empty, proxy authentication trusts loopback only.

Logging and Updates ​

KeyTypeDefaultDescription
debug
DAGU_DEBUG
boolfalseDebug logs, and request headers in access logs.
log_format
DAGU_LOG_FORMAT
stringtexttext or json.
access_log_mode
DAGU_ACCESS_LOG_MODE
stringnoneall, non-public (skips health, login, and setup), or none. See HTTP Access Logs.
check_updates
DAGU_CHECK_UPDATES
booltrueCheck for new releases and notify admins in the UI.
allow_web_upgrade
DAGU_ALLOW_WEB_UPGRADE
boolfalseLet admins upgrade from the UI, for installer-managed services. See Self-Upgrade.

Execution ​

KeyTypeDefaultDescription
default_execution_mode
DAGU_DEFAULT_EXECUTION_MODE
stringlocaldistributed sends every DAG to workers unless it sets worker_selector: local.
default_shell
DAGU_DEFAULT_SHELL
string$SHELL, else shShell for command steps. On Windows: pwsh, powershell, cmd, then $SHELL.
login_shell_path
DAGU_LOGIN_SHELL_PATH
stringautoGive launched runs the PATH of the user's login shell: always, never, or auto (when launchd or systemd started Dagu).
tz
DAGU_TZ
stringhost timeIANA timezone for schedules and display, exported to steps as TZ. See Timezone.
env_passthrough
DAGU_ENV_PASSTHROUGH
listnoneExtra variable names passed from Dagu's environment to steps. See Environment Variable Filtering.
env_passthrough_prefixes
DAGU_ENV_PASSTHROUGH_PREFIXES
listnoneExtra variable prefixes passed to steps, such as AWS_.
skip_examples
DAGU_SKIP_EXAMPLES
boolfalseDo not create example DAGs and the default base.yaml on first start.

The container runtime has no key: set DAGU_CONTAINER_RUNTIME and DAGU_PODMAN_HOST in the process environment. See Environment Variables.

UI ​

KeyTypeDefaultDescription
ui.navbar_title
DAGU_UI_NAVBAR_TITLE
stringDaguNavigation bar title.
ui.navbar_color
DAGU_UI_NAVBAR_COLOR
stringnoneNavigation bar color, a CSS color.
ui.log_encoding_charset
DAGU_UI_LOG_ENCODING_CHARSET
stringsystem charsetCharset for log lines that are not UTF-8. See Supported Log Encodings.
ui.max_dashboard_page_limit
DAGU_UI_MAX_DASHBOARD_PAGE_LIMIT
int100Items per dashboard page.
ui.dags.sort_field
DAGU_UI_DAGS_SORT_FIELD
stringnameDefault sort of the DAG list: name, nextRun, status, or lastRun.
ui.dags.sort_order
DAGU_UI_DAGS_SORT_ORDER
stringascasc or desc.

Authentication ​

KeyTypeDefaultDescription
auth.mode
DAGU_AUTH_MODE
stringbuiltinbuiltin, basic, or none. See Authentication.
auth.builtin.token.secret
DAGU_AUTH_TOKEN_SECRET
stringgeneratedSession signing secret. When unset, Dagu generates one and keeps it in the data directory.
auth.builtin.token.secret_file
DAGU_AUTH_TOKEN_SECRET_FILE
pathnoneFile holding the signing secret.
auth.builtin.token.ttl
DAGU_AUTH_TOKEN_TTL
duration24hSession lifetime, at most 8760h.
auth.builtin.initial_admin.username
DAGU_AUTH_BUILTIN_INITIAL_ADMIN_USERNAME
stringnoneAdmin created at startup when no user exists. Needs the password too.
auth.builtin.initial_admin.password
DAGU_AUTH_BUILTIN_INITIAL_ADMIN_PASSWORD
stringnonePassword of that admin, at least 8 characters.
auth.builtin.initial_admin.password_file
DAGU_AUTH_BUILTIN_INITIAL_ADMIN_PASSWORD_FILE
pathnoneFile holding that password.
auth.basic.username
DAGU_AUTH_BASIC_USERNAME
stringnoneUsername for auth.mode: basic.
auth.basic.password
DAGU_AUTH_BASIC_PASSWORD
stringnonePassword for auth.mode: basic.
auth.basic.password_file
DAGU_AUTH_BASIC_PASSWORD_FILE
pathnoneFile holding the basic auth password.

A _file key and its plain key cannot both be set. See Secrets From Files.

OIDC ​

OIDC adds single sign-on to auth.mode: builtin. It turns on when client_id, client_secret, client_url, and issuer are all set. See OIDC and OIDC Workspace Access.

KeyTypeDefaultDescription
auth.oidc.client_id
DAGU_AUTH_OIDC_CLIENT_ID
stringnoneOAuth client ID.
auth.oidc.client_secret
DAGU_AUTH_OIDC_CLIENT_SECRET
stringnoneOAuth client secret.
auth.oidc.client_secret_file
DAGU_AUTH_OIDC_CLIENT_SECRET_FILE
pathnoneFile holding the client secret.
auth.oidc.client_url
DAGU_AUTH_OIDC_CLIENT_URL
stringnoneBase URL of this server, for the callback.
auth.oidc.issuer
DAGU_AUTH_OIDC_ISSUER
stringnoneIssuer URL of the provider.
auth.oidc.scopes
DAGU_AUTH_OIDC_SCOPES
listopenid, profile, emailScopes to request.
auth.oidc.whitelist
DAGU_AUTH_OIDC_WHITELIST
listnoneEmail addresses allowed to sign in.
auth.oidc.allowed_domains
DAGU_AUTH_OIDC_ALLOWED_DOMAINS
listnoneEmail domains allowed to sign in.
auth.oidc.auto_signup
DAGU_AUTH_OIDC_AUTO_SIGNUP
booltrueCreate a user at the first sign-in.
auth.oidc.button_label
DAGU_AUTH_OIDC_BUTTON_LABEL
stringLogin with SSOSign-in button text.
auth.oidc.role_mapping.default_role
DAGU_AUTH_OIDC_DEFAULT_ROLE
stringviewerRole when no mapping matches and workspace access is all.
auth.oidc.role_mapping.groups_claim
DAGU_AUTH_OIDC_GROUPS_CLAIM
stringgroupsClaim that holds group names.
auth.oidc.role_mapping.group_mappingsmapnoneGroup name to role. Set it in the file: any value of DAGU_AUTH_OIDC_GROUP_MAPPINGS stops startup.
auth.oidc.role_mapping.workspace_mappings
DAGU_AUTH_OIDC_WORKSPACE_MAPPINGS
mapnoneGroup name to workspace grants. The variable takes a JSON object.
auth.oidc.role_mapping.default_workspace_access
DAGU_AUTH_OIDC_DEFAULT_WORKSPACE_ACCESS
stringallAccess of an unmatched user: all or none. Required with workspace_mappings.
auth.oidc.role_mapping.role_attribute_path
DAGU_AUTH_OIDC_ROLE_ATTRIBUTE_PATH
stringnonejq expression that reads the role from the claims.
auth.oidc.role_mapping.role_attribute_strict
DAGU_AUTH_OIDC_ROLE_ATTRIBUTE_STRICT
boolfalseDeny sign-in when no mapping matches.
auth.oidc.role_mapping.skip_org_role_sync
DAGU_AUTH_OIDC_SKIP_ORG_ROLE_SYNC
boolfalseSet role and workspace access at the first sign-in only.

Proxy Authentication ​

Proxy authentication adds sign-in through an authenticating reverse proxy to auth.mode: builtin. See Proxy Authentication.

KeyTypeDefaultDescription
auth.proxy.enabled
DAGU_AUTH_PROXY_ENABLED
boolfalseTurn on proxy sign-in.
auth.proxy.source
DAGU_AUTH_PROXY_SOURCE
stringnoneIdentity namespace, when several login systems send users.
auth.proxy.button_label
DAGU_AUTH_PROXY_BUTTON_LABEL
stringContinue with SSOSign-in option text.
auth.proxy.headers.user
DAGU_AUTH_PROXY_HEADERS_USER
stringnoneHeader with the stable user ID. Required when enabled.
auth.proxy.headers.groups
DAGU_AUTH_PROXY_HEADERS_GROUPS
stringnoneHeader with comma-separated groups. Required with mappings.
auth.proxy.auto_signup
DAGU_AUTH_PROXY_AUTO_SIGNUP
booltrueCreate a user at the first sign-in.
auth.proxy.role_mapping.default_role
DAGU_AUTH_PROXY_DEFAULT_ROLE
stringviewerRole when no mapping matches and workspace access is all.
auth.proxy.role_mapping.group_mappings
DAGU_AUTH_PROXY_GROUP_MAPPINGS
mapnoneGroup name to role. The variable takes a JSON object.
auth.proxy.role_mapping.workspace_mappings
DAGU_AUTH_PROXY_WORKSPACE_MAPPINGS
mapnoneGroup name to workspace grants. The variable takes a JSON object.
auth.proxy.role_mapping.default_workspace_access
DAGU_AUTH_PROXY_DEFAULT_WORKSPACE_ACCESS
stringnoneAccess of an unmatched user: all or none.
auth.proxy.role_mapping.require_mapping
DAGU_AUTH_PROXY_REQUIRE_MAPPING
boolfalseDeny sign-in when no mapping matches.
auth.proxy.role_mapping.skip_org_role_sync
DAGU_AUTH_PROXY_SKIP_ORG_ROLE_SYNC
boolfalseKeep the stored role and access on later sign-ins.

Paths ​

A relative path is resolved against the directory Dagu starts in. See Paths for which paths follow paths.data_dir.

KeyTypeDefaultDescription
paths.dags_dir
DAGU_DAGS_DIR
path<config dir>/dagsDAG files. Flag --dags.
paths.alt_dags_dir
DAGU_ALT_DAGS_DIR
pathnoneSecond directory searched for a DAG name.
paths.wiki_dir
DAGU_WIKI_DIR
path{dags_dir}/wikiWiki pages. See Wiki Directory.
paths.docs_dir
DAGU_DOCS_DIR
pathnoneDeprecated name of paths.wiki_dir.
paths.base_config
DAGU_BASE_CONFIG
path<config dir>/base.yamlBase configuration.
paths.calendars_dir
DAGU_CALENDARS_DIR
path<config dir>/calendarsBusiness calendars.
paths.executable
DAGU_EXECUTABLE
paththis binaryBinary that runs DAGs.
paths.log_dir
DAGU_LOG_DIR
path<data dir>/logsRun logs.
paths.admin_logs_dir
DAGU_ADMIN_LOG_DIR
path<data dir>/logs/adminAudit logs. Does not move paths.event_store_dir.
paths.event_store_dir
DAGU_EVENT_STORE_DIR
path<data dir>/logs/admin/eventsEvent store.
paths.data_dir
DAGU_DATA_DIR
path<data dir>/dataRuntime data. The paths below default under it.
paths.artifact_dir
DAGU_ARTIFACT_DIR
path<data dir>/data/artifactsRun artifacts. Does not follow paths.data_dir.
paths.dag_runs_dir
DAGU_DAG_RUNS_DIR
path{data_dir}/dag-runsRun history.
paths.dag_run_work_dir
DAGU_DAG_RUN_WORK_DIR
path{data_dir}/dag-run-workPer-run working directories.
paths.dag_state_dir
DAGU_DAG_STATE_DIR
path{data_dir}/dag-statePersistent state.
paths.queue_dir
DAGU_QUEUE_DIR
path{data_dir}/queueQueued runs.
paths.proc_dir
DAGU_PROC_DIR
path{data_dir}/procHeartbeats of running runs.
paths.suspend_flags_dir
DAGU_SUSPEND_FLAGS_DIR
path{data_dir}/suspendSuspended DAGs. See Suspend Flag Upgrades.
paths.service_registry_dir
DAGU_SERVICE_REGISTRY_DIR
path{data_dir}/service-registryCoordinator and worker registry.
paths.tools_dir
DAGU_TOOLS_DIR
path{data_dir}/toolsManaged tool cache.
paths.users_dir
DAGU_USERS_DIR
path{data_dir}/usersBuiltin auth users.
paths.workspaces_dir
DAGU_WORKSPACES_DIR
path{data_dir}/workspacesWorkspaces.
paths.contexts_dir
DAGU_CONTEXTS_DIR
path{data_dir}/contextsCLI contexts.
paths.api_keys_dirpath{data_dir}/apikeysAPI keys.
paths.webhooks_dirpath{data_dir}/webhooksWebhooks.
paths.remote_nodes_dirpath{data_dir}/remote-nodesRemote nodes added in the UI.
paths.views_dirpath{data_dir}/viewsSaved views.

DAG Discovery ​

KeyTypeDefaultDescription
dag_discovery.recursive
DAGU_DAG_DISCOVERY_RECURSIVE
boolfalseLoad DAGs from subdirectories. See Recursive DAG Discovery.
dag_discovery.symlinks
DAGU_DAG_DISCOVERY_SYMLINKS
boolfalseInclude file symlinks, including targets outside dags_dir.
dag_discovery.skip_directories
DAGU_DAG_DISCOVERY_SKIP_DIRECTORIES
listnoneTop-level directories that recursive discovery skips.

Queues ​

KeyTypeDefaultDescription
queues.enabled
DAGU_QUEUE_ENABLED
booltrueQueue system. Required for catch-up runs and dag.enqueue.
queues.config[].namestringnoneQueue name that DAGs set in queue:.
queues.config[].max_concurrencyint1Runs of the queue that execute at once.

See Queue Configuration.

Scheduler ​

KeyTypeDefaultDescription
scheduler.port
DAGU_SCHEDULER_PORT
int8090Health check port.
scheduler.lock_stale_threshold
DAGU_SCHEDULER_LOCK_STALE_THRESHOLD
duration30sAge after which another scheduler may take the leader lock.
scheduler.lock_retry_interval
DAGU_SCHEDULER_LOCK_RETRY_INTERVAL
duration5sHow often a standby scheduler tries the lock.
scheduler.failover_recovery_window
DAGU_SCHEDULER_FAILOVER_RECOVERY_WINDOW
duration2mHow far back a new leader replays missed schedule slots. 0 turns it off. Requires queues.
scheduler.zombie_detection_interval
DAGU_SCHEDULER_ZOMBIE_DETECTION_INTERVAL
duration45sHow often runs with stale heartbeats are checked. 0 turns off the scheduler's check.
scheduler.failure_threshold
DAGU_SCHEDULER_FAILURE_THRESHOLD
int3Stale checks in a row before a run counts as dead.
scheduler.retry_failure_window
DAGU_SCHEDULER_RETRY_FAILURE_WINDOW
duration24hHow far back failed runs are scanned for automatic retry, by the run's original date. 0 turns scanning off.
scheduler.wake_hold
DAGU_SCHEDULER_WAKE_HOLD
duration0Longest hold of ticks after the host wakes from sleep. See Wake Hold.
scheduler.backfill_max_slots
DAGU_SCHEDULER_BACKFILL_MAX_SLOTS
int10000Most slots one backfill may cover.

Process Liveness and Shutdown ​

KeyTypeDefaultDescription
proc.heartbeat_interval
DAGU_PROC_HEARTBEAT_INTERVAL
duration5sHow often a running run writes its heartbeat.
proc.stale_threshold
DAGU_PROC_STALE_THRESHOLD
duration90sHeartbeat age after which a run counts as stale.
signal_handling.drain_timeout
DAGU_SIGNAL_DRAIN_TIMEOUT
duration0How long a stopping process waits for its runs to finish. See Graceful Shutdown.
signal_handling.enable_propagation
DAGU_SIGNAL_PROPAGATION
boolfalseForward SIGINT and SIGTERM to the runs the process started.

Coordinator ​

KeyTypeDefaultDescription
coordinator.enabled
DAGU_COORDINATOR_ENABLED
booltruefalse keeps start-all from running a coordinator and other processes from calling one.
coordinator.host
DAGU_COORDINATOR_HOST
string127.0.0.1gRPC bind address. Flag --coordinator.host.
coordinator.port
DAGU_COORDINATOR_PORT
int50055gRPC port. Flag --coordinator.port.
coordinator.advertise
DAGU_COORDINATOR_ADVERTISE
stringhostnameAddress workers use to reach it. Flag --coordinator.advertise.
coordinator.health_port
DAGU_COORDINATOR_HEALTH_PORT
int8091Health check port. 0 turns it off.
coordinator.worker_wait_timeout
DAGU_COORDINATOR_WORKER_WAIT_TIMEOUT
duration2mHow long a run waits, queued, for a matching worker before it fails. 0 fails at once.
coordinator.require_token
DAGU_COORDINATOR_REQUIRE_TOKEN
boolfalseReject calls without the peer token or an eligible client certificate.
coordinator.require_tls
DAGU_COORDINATOR_REQUIRE_TLS
boolfalseRefuse plaintext calls, except health checks, when serving built-in TLS.

See Distributed Execution and Transport Security.

Worker ​

KeyTypeDefaultDescription
worker.id
DAGU_WORKER_ID
stringhostname@PIDWorker ID.
worker.coordinators
DAGU_WORKER_COORDINATORS
listnoneCoordinator addresses, host:port. Required for dagu worker.
worker.invite
DAGU_WORKER_INVITE
stringnoneInvite from dagu worker invite to join over built-in TLS.
worker.labels
DAGU_WORKER_LABELS
string, list, or mapnoneLabels that worker_selector matches, such as gpu=true,region=eu.
worker.max_active_runs
DAGU_WORKER_MAX_ACTIVE_RUNS
int100Runs the worker executes at once.
worker.health_port
DAGU_WORKER_HEALTH_PORT
int8092Health check port. 0 turns it off.
worker.shutdown_timeout
DAGU_WORKER_SHUTDOWN_TIMEOUT
duration60sHow long a stopping worker lets runs finish before it cancels them. 0 waits without a limit.
worker.postgres_pool.max_open_conns
DAGU_WORKER_POSTGRES_POOL_MAX_OPEN_CONNS
int25PostgreSQL connections the worker's steps share.
worker.postgres_pool.max_idle_conns
DAGU_WORKER_POSTGRES_POOL_MAX_IDLE_CONNS
int5Idle PostgreSQL connections kept.
worker.postgres_pool.conn_max_lifetime
DAGU_WORKER_POSTGRES_POOL_CONN_MAX_LIFETIME
int300Connection lifetime, in seconds.
worker.postgres_pool.conn_max_idle_time
DAGU_WORKER_POSTGRES_POOL_CONN_MAX_IDLE_TIME
int60Idle time before a connection closes, in seconds.

Peer Connections ​

Peer settings secure calls between the coordinator, workers, and the processes that dispatch runs.

KeyTypeDefaultDescription
peer.insecure
DAGU_PEER_INSECURE
boolunsettrue uses plaintext h2c, false TLS only. Unset uses built-in TLS when the coordinator's CA is known, else h2c.
peer.cert_file
DAGU_PEER_CERT_FILE
pathnoneTLS certificate.
peer.key_file
DAGU_PEER_KEY_FILE
pathnoneTLS private key.
peer.client_ca_file
DAGU_PEER_CLIENT_CA_FILE
pathnoneCA that verifies the other side, for mutual TLS.
peer.ca_cert_file
DAGU_PEER_CA_CERT_FILE
pathnoneBuilt-in TLS CA. On a coordinator it signs peer certificates; elsewhere it verifies the coordinator.
peer.ca_key_file
DAGU_PEER_CA_KEY_FILE
pathnonePrivate key of ca_cert_file, read by a coordinator only.
peer.skip_tls_verify
DAGU_PEER_SKIP_TLS_VERIFY
boolfalseSkip certificate verification.
peer.token
DAGU_PEER_TOKEN
stringgeneratedShared token peers send. When empty, peers use the one the coordinator generates in {data_dir}/coordinator/peer-token.
peer.max_retriesint3Retries of a call to a coordinator; 50 when dispatching runs.
peer.retry_intervalduration1sWait between retries.

Remote Nodes ​

Remote nodes are other Dagu servers that this UI can switch to. See Remote Nodes.

KeyTypeDefaultDescription
remote_nodes[].namestringnoneName shown in the node selector.
remote_nodes[].descriptionstringnoneDescription.
remote_nodes[].api_base_urlstringnoneAPI URL of the node, such as https://prod.example.com/api/v1.
remote_nodes[].auth_typestringnonenone, basic, or token.
remote_nodes[].basic_auth_usernamestringnoneUsername for basic.
remote_nodes[].basic_auth_passwordstringnonePassword for basic.
remote_nodes[].basic_auth_password_filepathnoneFile holding that password.
remote_nodes[].auth_tokenstringnoneAPI token for token.
remote_nodes[].auth_token_filepathnoneFile holding that token.
remote_nodes[].skip_tls_verifyboolfalseSkip certificate verification.
remote_nodes[].timeoutint0Timeout in seconds stored with the node. Requests the Web UI forwards use 30 seconds.

Audit, Events, and Monitoring ​

KeyTypeDefaultDescription
audit.enabled
DAGU_AUDIT_ENABLED
booltrueAudit log. Requires a license with audit logs. See Audit Logging.
audit.retention_days
DAGU_AUDIT_RETENTION_DAYS
int7Days of audit files kept. 0 keeps all.
event_store.enabled
DAGU_EVENT_STORE_ENABLED
booltrueEvent store behind the Events page and Dagu Console run reports.
event_store.retention_days
DAGU_EVENT_STORE_RETENTION_DAYS
int1Days of events kept. 0 keeps all.
monitoring.retention
DAGU_MONITORING_RETENTION
duration24hResource history kept for System Status.
monitoring.interval
DAGU_MONITORING_INTERVAL
duration5sResource sampling interval.
sse.max_clients
DAGU_SSE_MAX_CLIENTS
int1000Concurrent live-update connections.
sse.max_topics_per_connection
DAGU_SSE_MAX_TOPICS_PER_CONNECTION
int20Topics one connection may follow.
sse.heartbeat_interval
DAGU_SSE_HEARTBEAT_INTERVAL
duration10sKeep-alive interval.
sse.write_buffer_size
DAGU_SSE_WRITE_BUFFER_SIZE
int65536Write buffer per connection, in bytes.
sse.slow_client_timeout
DAGU_SSE_SLOW_CLIENT_TIMEOUT
duration30sTime before a client that does not read is disconnected.

Git Sync ​

See Git Sync.

KeyTypeDefaultDescription
git_sync.enabled
DAGU_GITSYNC_ENABLED
boolfalseSync DAGs and Wiki pages with a repository.
git_sync.repository
DAGU_GITSYNC_REPOSITORY
stringnoneRepository URL. For SSH with a user other than git, put it in the URL.
git_sync.branch
DAGU_GITSYNC_BRANCH
stringmainBranch.
git_sync.path
DAGU_GITSYNC_PATH
stringnoneRepository subdirectory to sync.
git_sync.inventory_path
DAGU_GITSYNC_INVENTORY_PATH
stringnoneNode inventory file applied on each pull. See Node Inventories.
git_sync.push_enabled
DAGU_GITSYNC_PUSH_ENABLED
booltrueAllow pushing changes.
git_sync.auth.type
DAGU_GITSYNC_AUTH_TYPE
stringtokentoken or ssh.
git_sync.auth.token
DAGU_GITSYNC_AUTH_TOKEN
stringnoneAccess token for HTTPS.
git_sync.auth.token_file
DAGU_GITSYNC_AUTH_TOKEN_FILE
pathnoneFile holding the token.
git_sync.auth.ssh_key_path
DAGU_GITSYNC_AUTH_SSH_KEY_PATH
pathnoneSSH private key.
git_sync.auth.ssh_passphrase
DAGU_GITSYNC_AUTH_SSH_PASSPHRASE
stringnoneSSH key passphrase.
git_sync.auth.ssh_passphrase_file
DAGU_GITSYNC_AUTH_SSH_PASSPHRASE_FILE
pathnoneFile holding the passphrase.
git_sync.auto_sync.enabled
DAGU_GITSYNC_AUTOSYNC_ENABLED
boolfalsePull in the background.
git_sync.auto_sync.on_startup
DAGU_GITSYNC_AUTOSYNC_ON_STARTUP
booltruePull at startup.
git_sync.auto_sync.interval
DAGU_GITSYNC_AUTOSYNC_INTERVAL
int300Seconds between pulls. 0 pulls only at startup.
git_sync.commit.author_name
DAGU_GITSYNC_COMMIT_AUTHOR_NAME
stringDaguCommit author name.
git_sync.commit.author_email
DAGU_GITSYNC_COMMIT_AUTHOR_EMAIL
stringdagu@localhostCommit author email.

Tunnel ​

Read by dagu server only: dagu start-all does not start the tunnel. See Tunnel (Tailscale).

KeyTypeDefaultDescription
tunnel.enabled
DAGU_TUNNEL_ENABLED
boolfalseServe through Tailscale. Flag --tunnel.
tunnel.tailscale.auth_key
DAGU_TUNNEL_TAILSCALE_AUTH_KEY
stringnoneTailscale auth key.
tunnel.tailscale.hostname
DAGU_TUNNEL_TAILSCALE_HOSTNAME
stringdaguMachine name in the tailnet.
tunnel.tailscale.funnel
DAGU_TUNNEL_TAILSCALE_FUNNEL
boolfalseExpose to the internet with Funnel.
tunnel.tailscale.https
DAGU_TUNNEL_TAILSCALE_HTTPS
boolfalseHTTPS inside the tailnet.
tunnel.tailscale.state_dir
DAGU_TUNNEL_TAILSCALE_STATE_DIR
path{data_dir}/tailscaleTailscale state.
tunnel.allow_terminal
DAGU_TUNNEL_ALLOW_TERMINAL
boolfalseNo effect on access. Changes only the startup banner.
tunnel.allowed_ips
DAGU_TUNNEL_ALLOWED_IPS
listnoneNo effect.
tunnel.rate_limiting.enabled
DAGU_TUNNEL_RATE_LIMITING_ENABLED
boolfalseNo effect.
tunnel.rate_limiting.login_attempts
DAGU_TUNNEL_RATE_LIMITING_LOGIN_ATTEMPTS
int5No effect.
tunnel.rate_limiting.window_seconds
DAGU_TUNNEL_RATE_LIMITING_WINDOW_SECONDS
int300No effect.
tunnel.rate_limiting.block_duration_seconds
DAGU_TUNNEL_RATE_LIMITING_BLOCK_DURATION_SECONDS
int900No effect.

License and Dagu Console ​

KeyTypeDefaultDescription
license.key
DAGU_LICENSE_KEY
stringnoneServer key or license key from Dagu Console. See Self-Host License.
license.cloud_url
DAGU_LICENSE_CLOUD_URL
stringhttps://console.dagu.shLicense service URL.
license.server_name
DAGU_LICENSE_SERVER_NAME
stringhostnameName this server reports to Dagu Console.
cloud.report
DAGU_CLOUD_REPORT
stringunsetWhat the server reports: off, health, runs, or errors. Unset leaves the choice to admins in the UI. See Monitoring.
cloud.audit
DAGU_CLOUD_AUDIT
stringoffAudit entries sent to Dagu Console: off, changes, or all. See Audit Logs in Dagu Console.
cloud.audit_drain_timeout
DAGU_CLOUD_AUDIT_DRAIN_TIMEOUT
duration25sTime a stopping server spends sending remaining audit entries. 0 stops at once; other values are at least 5s.
cloud.remote_access
DAGU_CLOUD_REMOTE_ACCESS
stringunsetHighest role of Dagu Cloud users on this server: off, viewer, operator, or developer. Unset leaves the choice to the UI. See Remote Access.
cloud.remote_approvals
DAGU_CLOUD_REMOTE_APPROVALS
boolunsetWhether those users may approve, reject, or push back waiting steps.
cloud.run_key
DAGU_CLOUD_RUN_KEY
stringnoneRun key (drk_...) that makes top-level CLI runs report as job runs. See Job Runs.

Secret Providers ​

Defaults for secret providers. A DAG's secrets: entry can override them.

KeyTypeDefaultDescription
secrets.vault.address
DAGU_SECRETS_VAULT_ADDRESS
stringnoneVault address.
secrets.vault.token
DAGU_SECRETS_VAULT_TOKEN
stringnoneVault token.
secrets.vault.token_file
DAGU_SECRETS_VAULT_TOKEN_FILE
pathnoneFile holding the Vault token.
secrets.vault.ca_cert
DAGU_SECRETS_VAULT_CA_CERT
pathnoneCA that verifies a private Vault endpoint.
secrets.vault.client_cert
DAGU_SECRETS_VAULT_CLIENT_CERT
pathnoneClient certificate for Vault mutual TLS.
secrets.vault.client_key
DAGU_SECRETS_VAULT_CLIENT_KEY
pathnoneKey of that certificate.
secrets.kubernetes.namespace
DAGU_SECRETS_KUBERNETES_NAMESPACE
stringnoneKubernetes namespace.
secrets.kubernetes.kubeconfig
DAGU_SECRETS_KUBERNETES_KUBECONFIG
pathnoneKubeconfig file.
secrets.kubernetes.context
DAGU_SECRETS_KUBERNETES_CONTEXT
stringnoneKubeconfig context.
secrets.aws.region
DAGU_SECRETS_AWS_REGION
stringnoneAWS Secrets Manager region.
secrets.gcp.project_id
DAGU_SECRETS_GCP_PROJECT_ID
stringnoneGoogle Cloud project.
secrets.gcp.location
DAGU_SECRETS_GCP_LOCATION
stringnoneLocation for regional secrets.
secrets.azure.vault_url
DAGU_SECRETS_AZURE_VAULT_URL
stringnoneAzure Key Vault URL.
secrets.alibaba.region
DAGU_SECRETS_ALIBABA_REGION
stringnoneAlibaba Cloud KMS region.
secrets.alibaba.endpoint
DAGU_SECRETS_ALIBABA_ENDPOINT
stringnoneKMS gateway host name, without https://.
secrets.alibaba.ca_file
DAGU_SECRETS_ALIBABA_CA_FILE
pathnoneCA of a dedicated KMS gateway.

Browser ​

Settings for every browser that browser steps start on this host.

KeyTypeDefaultDescription
browser.sandbox
DAGU_BROWSER_SANDBOX
booltrueChromium sandbox. Set false only where it cannot start; see Requirements.
browser.max_open
DAGU_BROWSER_MAX_OPEN
int0Most browsers open at once; 0 means no limit. See Limiting Open Browsers.
browser.slots_dir
DAGU_BROWSER_SLOTS_DIR
path<user cache dir>/dagu/browser-slotsWhere browsers are counted toward max_open. Processes sharing it share the limit.
browser.write_gate
DAGU_BROWSER_WRITE_GATE
stringoffLeast strict write gate: off, record, ask, or rehearse.
browser.write_policy
DAGU_BROWSER_WRITE_POLICY
pathnoneWrite policy file.
browser.guard_client_certificates
DAGU_BROWSER_GUARD_CLIENT_CERTIFICATES
booltrue with client certificatesKeep the browser from prompting for a client certificate.
browser.client_certificates[].hostslistnoneHosts the certificate is presented to: a name, *.example.com, or *.
browser.client_certificates[].pfx_filepathnonePKCS#12 file with certificate and key.
browser.client_certificates[].cert_filepathnonePEM certificate and chain, with key_file.
browser.client_certificates[].key_filepathnoneUnencrypted PEM key.
browser.client_certificates[].ca_filepathnoneExtra CAs trusted for these hosts.
browser.client_certificates[].passphrasestringnonePassphrase of pfx_file.
browser.client_certificates[].passphrase_filepathnoneFile holding that passphrase.
browser.trusted_cas[].hostslistnoneHosts the CA is trusted for: a name, *.example.com, or *.
browser.trusted_cas[].ca_filepathnonePEM file of CAs or self-signed server certificates.

Browser Certificate Trust ​

browser.trusted_cas adds private CAs for named sites, on each machine that runs browsers. Trust is only added: the system CAs and every client_certificates[].ca_file stay trusted. Hosts listed in trusted_cas always go through Dagu's certificate proxy. For an HTTPS upstream proxy with a private CA, add an entry for the proxy's host name. See Trusted Certificate Authorities.

browser.guard_client_certificates keeps Chrome from asking the user to pick a client certificate. Dagu checks each other HTTPS site once with its own TLS handshake:

  • A site that uses TLS 1.3, asks for no client certificate, and has a publicly trusted certificate keeps Chrome's own connection.
  • Other sites go through Dagu's proxy, which presents no client certificate.
  • Under TLS 1.3 a certificate request is encrypted, so a site that asks Chrome but did not ask during the check can still reach Chrome's certificate prompt.

The guard also trusts the client_certificates[].ca_file CAs for other hosts. Use trusted_cas to limit a CA to named hosts.

Agent Tools ​

File only: setting DAGU_AGENT_TOOLS stops startup, and so does an unknown key in the block. See Tool Calling.

KeyTypeDefaultDescription
agent_tools.max_toolsint64Most tools in a step's catalog. A larger catalog fails the step.
agent_tools.tool_result_max_bytesint524288Largest tool result sent to the model. 0 means no limit.

Untrusted Steps ​

The restricted user that runs untrusted steps, on Linux. File only: setting DAGU_UNTRUSTED stops startup.

yaml
untrusted:
  uid: 10001
  gid: 10001
KeyTypeDefaultDescription
untrusted.isolationstringonon requires uid and gid and fails an untrusted step without them. off runs it as the process user, for development.
untrusted.uidintnoneUser ID of the restricted user, 1 to 4294967294. Set with gid. Must differ from the process user ID.
untrusted.gidintnoneGroup ID of the restricted user, 1 to 4294967294. Set with uid. Must differ from the process group ID.
  • One key without the other, a value out of range, or isolation: off together with uid and gid stops startup.
  • The user needs no /etc/passwd entry. Give each Dagu process its own restricted user, unless the processes share no PID namespace and no work directory.
  • dagu config --values prints the three values.

OpenCode ​

KeyTypeDefaultDescription
opencode.executable
DAGU_OPENCODE_EXECUTABLE
stringopencodeOpenCode binary for the managed service.
opencode.env_passthrough
DAGU_OPENCODE_ENV_PASSTHROUGH
listnoneVariable names passed to the OpenCode service. See Service Setup.

Environment Variables ​

Every variable in the tables above has the DAGU_ prefix and a fixed name. Names that are not listed are ignored: DAGU_PATHS_DAGS_DIR does nothing. Dagu's own credential variables never reach steps.

These variables have no config.yaml key:

VariableDescription
DAGU_HOMEApplication home for config, DAGs, and data. Flag --dagu-home. See DAGU_HOME.
DAGU_LICENSELicense token, inline. Checked before DAGU_LICENSE_KEY and license.key.
DAGU_LICENSE_FILEOffline license file.
DAGU_ENCRYPTION_KEYKey that encrypts stored secrets. When unset, Dagu uses {data_dir}/auth/encryption_key, created when first needed.
DAGU_CONTAINER_RUNTIMEdocker (default) or podman, for container:, docker.run, and containerized harness steps.
DAGU_PODMAN_HOSTPodman API socket. Default unix:///run/podman/podman.sock.

DAGU_CONTAINER_RUNTIME and DAGU_PODMAN_HOST are read from the Dagu process environment. A DAG's or step's env: cannot change them.

Legacy Names ​

Old names still load. The current name wins when both are set.

Legacy variableUse instead
DAGU_DAGSDAGU_DAGS_DIR
DAGU_TUNNELDAGU_TUNNEL_ENABLED
DAGU_NAVBAR_COLOR, DAGU__ADMIN_NAVBAR_COLORDAGU_UI_NAVBAR_COLOR
DAGU_NAVBAR_TITLE, DAGU__ADMIN_NAVBAR_TITLEDAGU_UI_NAVBAR_TITLE
DAGU_LOG_ENCODING_CHARSETDAGU_UI_LOG_ENCODING_CHARSET
DAGU_MAX_DASHBOARD_PAGE_LIMITDAGU_UI_MAX_DASHBOARD_PAGE_LIMIT
DAGU__ADMIN_HOST, DAGU__ADMIN_PORTDAGU_HOST, DAGU_PORT
DAGU__DATADAGU_DATA_DIR
DAGU__SUSPEND_FLAGS_DIRDAGU_SUSPEND_FLAGS_DIR
DAGU__ADMIN_LOGS_DIRDAGU_ADMIN_LOG_DIR
DAGU__EVENT_STORE_DIRDAGU_EVENT_STORE_DIR
DAGU_DOCS_DIRDAGU_WIKI_DIR
DAGU_API_BASE_URLDAGU_API_BASE_PATH
DAGU_LATEST_STATUS_TODAYnone; deprecated
DAGU_SCHEDULER_HEARTBEAT_INTERVALDAGU_PROC_HEARTBEAT_INTERVAL
DAGU_SCHEDULER_STALE_THRESHOLDDAGU_PROC_STALE_THRESHOLD
Legacy keyUse instead
dags, dags_dir, executable, log_dir, artifact_dir, data_dir, suspend_flags_dir, admin_logs_dir, event_store_dir, base_configThe same key under paths.
navbar_color, navbar_title, log_encoding_charset, max_dashboard_page_limitThe same key under ui.
permission_write_dags, permission_run_dagspermissions.write_dags, permissions.run_dags
api_base_urlapi_base_path
latest_status_todaynone; deprecated
queues.config[].max_active_runsqueues.config[].max_concurrency; the old key wins when both are set
scheduler.heartbeat_interval, scheduler.stale_thresholdproc.heartbeat_interval, proc.stale_threshold; proc.* wins
proc.heartbeat_sync_interval, scheduler.heartbeat_sync_intervalnone; accepted and ignored

Supported Log Encodings ​

ui.log_encoding_charset accepts these names, in any case, with _ or -. An unknown name leaves lines as they are. See Log Encoding for how lines are decoded.

ScriptNames (aliases)
Unicodeutf-8; utf-16 (follows a byte-order mark, else little-endian), utf-16le, utf-16be
Japaneseshift_jis (sjis, ms-kanji), euc-jp, iso-2022-jp
Chinesegbk (gb2312, cp936), gb18030, hz-gb-2312, big5
Koreaneuc-kr (korean)
ISO-8859iso-8859-1 to iso-8859-10, iso-8859-13 to iso-8859-16 (latin1 to latin10, cyrillic, arabic, greek, hebrew)
Windowswindows-1250 to windows-1258 (cp1250 to cp1258; ansi is windows-1252)
DOSibm437, ibm850, ibm852, ibm855, ibm858, ibm860, ibm862, ibm863, ibm865, ibm866 (cp437 and so on)
Otherkoi8-r, koi8-u, macintosh (macroman)

Suspend Flag Upgrades ​

Suspended DAGs are recorded as flag files in paths.suspend_flags_dir, which defaults to {data_dir}/suspend so that every process sharing the data directory shares suspension state. A path outside data_dir logs a warning.

Upgrading from the old default location

With the default path, Dagu also reads flags from the previous default: suspend/ under the Dagu home, or $XDG_DATA_HOME/dagu/suspend in the XDG layout. The leading scheduler copies them into the new directory before it processes runs, and keeps the originals. Suspending a DAG writes the new flag before it removes the legacy one; resuming removes both. An explicit paths.suspend_flags_dir turns this off.

  • Make the same legacy flags available to every server and scheduler, and reconcile per-host flag directories first.
  • Upgrade every process before changing suspension state. Older processes that write legacy flags must not run beside upgraded ones.
  • Keep the legacy directory in backups until the scheduler has copied it.
  • To roll back, configure the older version to use the new suspend directory.

Dagu is open source under the GNU General Public License v3.0.