Skip to content

Configure Kirby via env . variables #7860

@vholer

Description

@vholer

Allow adjusting Kirby configuration via environment variables, effectively overriding options configured in site/config/config.php. Use case here is to enforce some site-specific defaults, so that the person doesn't have to change the code. We are particularly interested in adjusting the caching settings, so e.g. env. variable KIRBY_CACHE_PAGES_ACTIVE=true might have same effect as setting:

  'cache' => [
    'pages' => [
      'active' => true,
    ]
  ],

We are able to provide a PR draft covering few options to discuss.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions