Skip to main content
HydroGo
Configurationconfig.yaml reference

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.

config.yaml
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: false
Validate a file before you start the server: hydro validate --config config.yaml. It reports configuration and database problems with a remediation hint.

Top level

KeyDefaultMeaning
profilecompactCapacity profile: compact, standard or distributed. See Modules and profiles.
modulesper presetWhich modules run: core, auth, members, pages, media, site, news, collections, commerce, analytics.
content_types_dircontent-typesFolder with the content type YAML files.
safe_modefalseStart with a restricted feature set for recovery.

http

KeyDefaultMeaning
address127.0.0.1:8080Listen address. Use 0.0.0.0:8080 in containers.
public_originemptyCanonical public HTTPS origin of the CMS, for example https://cms.example.com. Set it in every deployed environment.
behind_proxyfalseTrust that a reverse proxy terminates TLS in front of HydroGo.
auto_tlsfalseObtain certificates automatically. Needs domain and cannot be combined with behind_proxy.
domainemptyThe single domain used for automatic TLS.

database

KeyDefaultMeaning
dialectsqlitesqlite, postgres or mysql (MySQL and MariaDB).
dsnemptyConnection string. Prefer HYDRO_DATABASE_DSN or a protected secret file over putting credentials in the YAML.
sqlite_external_write_watchfalseDetect external writers to the SQLite file.
DSN examples
# 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.db

media

KeyDefaultMeaning
dirdata/mediaLocal media directory.
min_free_bytes52428800Refuse uploads when free disk space drops below this (50 MiB).
storage_driverlocals3 stores media in an S3-compatible bucket.
s3_endpoint, s3_bucket, s3_regionemptyS3 location.
s3_access_key, s3_secret_keyemptyS3 credentials. Use environment variables.
s3_use_ssl, s3_force_path_styleS3 connection options (path-style is needed by many self-hosted stores).
cdn_base_urlemptyServe media URLs from a CDN origin.
hotlink_protection, allowed_referer_hostsoffBlock other sites from embedding your media.
watermark_text, watermark_position, watermark_opacity, watermark_marginoffOptional text watermark on image derivatives.

i18n

KeyDefaultMeaning
enabledTurn on content locales.
default_localeenFallback locale. Cannot be empty.
localesList of 1 to 64 locale codes such as en, tr, pt-BR.

Content locales are covered in Content locales.

security

KeyDefaultMeaning
secure_cookiesfalseMark cookies Secure. Keep false for plain-HTTP local development, true on HTTPS.
enable_hstsfalseSend Strict-Transport-Security. Enable only when HTTPS works everywhere.
headers_presetstrictPreset of security response headers.
enable_anomaly_filtertrueBlock 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_keyemptySecret (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_keyemptyAt least 32 bytes; signs draft preview links.
password_reset_ttl, invitation_ttlbuilt-inLifetime of reset and invitation links, for example 1h.

audit

KeyDefaultMeaning
log_request_bodiesfalseRecord the redacted, size-capped JSON body of every state-changing admin API request in the audit trail. See Audit trail.

redis

KeyDefaultMeaning
urlemptyRedis or Valkey URL, e.g. rediss://:secret@host:6379/0. Leave empty for single-instance setups.
key_prefixhydro:Prefix for all keys, so several apps can share one Redis.

mail and forms

KeyMeaning
mail.host, mail.port, mail.username, mail.password, mail.from, mail.starttlsSMTP server for transactional e-mail (invitations, password resets, notifications).
mail.dkim_selectorDKIM selector for signed mail.
mail.max_per_second, mail.max_per_hourOutgoing mail rate limits.
forms.turnstile_site_key, forms.turnstile_secret_keyCloudflare Turnstile keys for public forms.

seo, analytics, geoip, observability

KeyMeaning
seo.og_cache_dir, seo.fonts_dirCache and font folders for generated Open Graph images (/og/{locale}/{slug}).
analytics.no_cookie_enabled, analytics.hash_keyOpt-in cookie-free daily visitor summaries; the hash key must be 32+ random bytes.
geoip.database_path, geoip.trusted_proxy_cidrsOptional offline GeoIP database and the proxy ranges that may supply location headers.
observability.sentry_dsnSentry 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.

YAML
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: 3
backup.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:

YAML
commerce:
  max_pending_orders_per_ip: 10
  max_line_quantity: 100

Other blocks

  • tenancy (enabled, require_host, hosts) maps hostnames to tenants for multi-tenant deployments.
  • admin_support shows 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.