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
- Reach out at #drunomics-contribute @ the Drupal Slack!
Supporting organizations:
Initial development.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Developer tools
40 sites report using this module
- Created by fago on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
8.x-1.4
released 8 October 2024
Works with Drupal: ^8 || ^9 || ^10 || ^11
D11 compatibility
Install:
Development version: 8.x-1.x-dev updated 8 Oct 2024 at 04:15 UTC


