unit: Unable to get environment variables

By default, Nginx Unit is not able to get the environment variables unless they are set through environment. Is there a way to get the environment variable from the system environment?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 23 (6 by maintainers)

Most upvoted comments

I am using Python and Django, when I use os.environ["PATH"] I get KeyError

I agree we should start adding a section to our documentation where we start from the Language and not the application. Like Unit for PHP Developers should have a bunch of this information and some overview about why is Unit different from PHP-FPM and a setup with mod_php in Apache. Would that be helpful?

Cheers Timo

That would definitely be a welcome addition.

Best, Jeff