Skip to content

Make the functionality of the applications/environment configuration clearer #178

@javorszky

Description

@javorszky

We've run into issues where folks aren't sure how the envionment variables are being processed in Unit. The part of the documentation is this: https://unit.nginx.org/configuration/#applications

What's there:

environment -- String-valued object; environment variables to be passed to the app.

What's missing:

  • does not spell out that Unit passes the available and existing environment variables to the appliaction as-is without modification even if no environment config object is specified
  • anything specified in the environment object gets merged to / added to the existing environment variables
  • if an environment variable already exists on the system, and gets declared in the object, the object's value gets passed to the application

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions