Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • E emalm-main
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • group-emalm
  • emalm-main
  • Merge requests
  • !1

Centralize runtime configuration

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Onne Ronda requested to merge fix/config-centralization into master Apr 25, 2026
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 27

Summary

Centralizes hardcoded runtime configuration into config.php and config.local.php.

Changes

  • Adds config.php with documented empty/default config values.
  • Adds config.local.php with the currently hardcoded local values copied verbatim.
  • Loads config.php first, then overlays config.local.php.
  • Adds emalm_config() helper for config lookups.
  • Replaces scattered hardcoded reCAPTCHA keys, webhook URLs, CDN paths, site/CDN URLs, and helper service paths with config lookups.
  • Leaves database access and conn.php unchanged.

Verification

  • Ran PHP lint across all PHP files.
  • Ran git diff --check.
  • Confirmed extracted secret/path values no longer appear outside config.local.php.
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/config-centralization