config.yaml reference
Every commonly used key in config.yaml, what it does and its default. Copy config.example.yaml from the repository for a commented starting point.
HydroGo reads config.yaml (path given with --config). Every key can also be overridden with a HYDRO_* environment variable, listed on Environment variables. Environment variables win over the file, and command-line runtime flags win over both.
profile: compact
modules: [core, auth, members, pages, media, site, news, collections]
http:
address: "127.0.0.1:8080"
public_origin: "https://cms.example.com"
database:
dialect: "sqlite"
dsn: "data/hydro.db"
media:
dir: "data/media"
min_free_bytes: 52428800
i18n:
enabled: true
default_locale: en
locales: [en, tr]
security:
secure_cookies: true
enable_hsts: true
audit:
log_request_bodies: falsehydro validate --config config.yaml. It reports configuration and database problems with a remediation hint.Top level
| Key | Default | Meaning |
|---|---|---|
profile | compact | Capacity profile: compact, standard or distributed. See Modules and profiles. |
modules | per preset | Which modules run: core, auth, members, pages, media, site, news, collections, commerce, analytics. |
content_types_dir | content-types | Folder with the content type YAML files. |
safe_mode | false | Start with a restricted feature set for recovery. |
http
| Key | Default | Meaning |
|---|---|---|
address | 127.0.0.1:8080 | Listen address. Use 0.0.0.0:8080 in containers. |
public_origin | empty | Canonical public HTTPS origin of the CMS, for example https://cms.example.com. Set it in every deployed environment. |
behind_proxy | false | Trust that a reverse proxy terminates TLS in front of HydroGo. |
auto_tls | false | Obtain certificates automatically. Needs domain and cannot be combined with behind_proxy. |
domain | empty | The single domain used for automatic TLS. |
database
| Key | Default | Meaning |
|---|---|---|
dialect | sqlite | sqlite, postgres or mysql (MySQL and MariaDB). |
dsn | empty | Connection string. Prefer HYDRO_DATABASE_DSN or a protected secret file over putting credentials in the YAML. |
sqlite_external_write_watch | false | Detect external writers to the SQLite file. |
# PostgreSQL
postgres://hydro_app:[email protected]:5432/hydro?sslmode=verify-full
# MySQL / MariaDB
hydro:REPLACE_ME@tcp(db.internal:3306)/hydro
# SQLite (a file path)
data/hydro.dbmedia
| Key | Default | Meaning |
|---|---|---|
dir | data/media | Local media directory. |
min_free_bytes | 52428800 | Refuse uploads when free disk space drops below this (50 MiB). |
storage_driver | local | s3 stores media in an S3-compatible bucket. |
s3_endpoint, s3_bucket, s3_region | empty | S3 location. |
s3_access_key, s3_secret_key | empty | S3 credentials. Use environment variables. |
s3_use_ssl, s3_force_path_style | S3 connection options (path-style is needed by many self-hosted stores). | |
cdn_base_url | empty | Serve media URLs from a CDN origin. |
hotlink_protection, allowed_referer_hosts | off | Block other sites from embedding your media. |
watermark_text, watermark_position, watermark_opacity, watermark_margin | off | Optional text watermark on image derivatives. |
i18n
| Key | Default | Meaning |
|---|---|---|
enabled | Turn on content locales. | |
default_locale | en | Fallback locale. Cannot be empty. |
locales | List of 1 to 64 locale codes such as en, tr, pt-BR. |
Content locales are covered in Content locales.
security
| Key | Default | Meaning |
|---|---|---|
secure_cookies | false | Mark cookies Secure. Keep false for plain-HTTP local development, true on HTTPS. |
enable_hsts | false | Send Strict-Transport-Security. Enable only when HTTPS works everywhere. |
headers_preset | strict | Preset of security response headers. |
enable_anomaly_filter | true | Block obviously abusive requests. |
anomaly_bypass_paths | [] | Paths exempt from the anomaly filter. |
mfa_required_roles | [] | Roles that must use MFA, for example [admin]. Enrol the accounts first. |
mfa_master_key | empty | Secret (16, 24 or 32 bytes) that protects stored TOTP seeds. |
public_api_origins | [] | Explicit allowlist of browser origins that may read published /api/v1 content without credentials. Wildcards are not supported. |
preview_signing_key | empty | At least 32 bytes; signs draft preview links. |
password_reset_ttl, invitation_ttl | built-in | Lifetime of reset and invitation links, for example 1h. |
audit
| Key | Default | Meaning |
|---|---|---|
log_request_bodies | false | Record the redacted, size-capped JSON body of every state-changing admin API request in the audit trail. See Audit trail. |
redis
| Key | Default | Meaning |
|---|---|---|
url | empty | Redis or Valkey URL, e.g. rediss://:secret@host:6379/0. Leave empty for single-instance setups. |
key_prefix | hydro: | Prefix for all keys, so several apps can share one Redis. |
mail and forms
| Key | Meaning |
|---|---|
mail.host, mail.port, mail.username, mail.password, mail.from, mail.starttls | SMTP server for transactional e-mail (invitations, password resets, notifications). |
mail.dkim_selector | DKIM selector for signed mail. |
mail.max_per_second, mail.max_per_hour | Outgoing mail rate limits. |
forms.turnstile_site_key, forms.turnstile_secret_key | Cloudflare Turnstile keys for public forms. |
seo, analytics, geoip, observability
| Key | Meaning |
|---|---|
seo.og_cache_dir, seo.fonts_dir | Cache and font folders for generated Open Graph images (/og/{locale}/{slug}). |
analytics.no_cookie_enabled, analytics.hash_key | Opt-in cookie-free daily visitor summaries; the hash key must be 32+ random bytes. |
geoip.database_path, geoip.trusted_proxy_cidrs | Optional offline GeoIP database and the proxy ranges that may supply location headers. |
observability.sentry_dsn | Sentry or GlitchTip DSN for error reporting. |
audit, webhooks and backup
audit.chain: true enables the SHA-256 hash chain verified by hydro audit verify. webhooks is a list of outgoing endpoints (set allow_pii: true on an endpoint to allow topics that carry user PII); see Caching and webhooks. Scheduled cloud backups use the backup block.
audit:
log_request_bodies: true
chain: true # SHA-256 hash chain verified via hydro audit verify
webhooks:
- id: frontend-rebuild
url: https://ci.example.com/hooks/rebuild
allow_pii: false # required true for topics carrying user PII (e.g. user.invited)
topics: [page.published, news.published, news.retracted]
backup:
enabled: false
prefix: backups/
retention_days: 30
hour_utc: 3backup.enabled: true requires configured S3-compatible credentials, a retention_days between 1 and 3650 and an hour_utc between 0 and 23. Otherwise the config fails validation.commerce
Order and cart guardrails for the commerce module:
commerce:
max_pending_orders_per_ip: 10
max_line_quantity: 100Other blocks
tenancy(enabled,require_host,hosts) maps hostnames to tenants for multi-tenant deployments.admin_supportshows an optional support contact card inside the admin (agency_name,email,phone,whatsapp_url,sla_badge,guide_url).admin_extensions(manifest_dir,trusted_keys_file) loads signed, externally hosted admin surfaces.license(required,file,project_id,edition,features) is only relevant to licensed editions.