A simple helper that allows setting service parameters by environment variables.

Usage

1. Install as usual.
2. Set environment variables following this pattern:

DRUPAL_SERVICE_{ variable }={ value }

The variable name following the same rules:

  • Casing is kept as is
  • '__' is replaced by dots (".").
  • '___' is used for setting nested array structures

Usage examples

Setting Drupal's CORS values:

DRUPAL_SERVICE_cors__config___enabled=1
DRUPAL_SERVICE_cors__config___allowedOrigins___0=http://www.example.com

Setting a cookie domain

DRUPAL_SERVICE_session__storage__options___cookie_domain=".example.com"

Contribute

Supporting organizations: 
Initial development.

Project information

  • caution Minimally maintained
    Maintainers monitor issues, but fast responses are not guaranteed.
  • caution Maintenance fixes only
    Considered feature-complete by its maintainers.
  • Project categories: Developer tools
  • chart icon40 sites report using this module
  • Created by fago on , updated
  • shieldStable releases for this project are covered by the security advisory policy.
    Look for the shield icon below.

Releases