Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow all iisnode settings to be configured via environment variables #220

Closed
glennblock opened this issue Oct 3, 2012 · 5 comments
Closed

Comments

@glennblock
Copy link

All vars should have an iisnode- prefix, for example IISNODE-ENABLEDEBUGGING. This will make it easy to configure iisnode from the Azure portal.

Here is the order of precedence for how config values will be read

  1. Env vars
  2. iisnode.yml
  3. web.config
    @Gissues:{"order":72.4609375,"status":"notstarted"}
@tjanczuk
Copy link
Owner

With this change iisnode allows specification of all of its settings using environment variables.

Environment variables must be set in the environment block of the IIS worker process (w3wp.exe) to be effective. Naming of the environment variables follows a pattern of IISNODE_<SettingName>, where <SettingName> corresponds to any of the configuration settings specified in iisnode.yml. String configuration settings are used literally. Integer configuration settings allow values between 0 and LONG_MAX. Boolean configuration settings should be specified as 1 or 0.

This is the order of precedence of configuration settings (with 1 taking precedence over 2, etc.):

  1. iisnode.yml
  2. environment variables
  3. web.config
  4. defaults in iisnode_schema.xml

@bjrmatos
Copy link

sorry but i can't find any example on google of how to setup Environment variables for the IIS worker process :( could you please guide me a little?

@Siafu
Copy link

Siafu commented Sep 16, 2015

@bjrmatos take a look at this sample web.config https://gist.github.com/pbaio/f63918181d8d7f8ee1d2 . It's setting up the virtualDirPath environment variable.

@Siafu
Copy link

Siafu commented Sep 16, 2015

Also you can specify variables by adding stuff like LOGON_USER to the promoteServerVars option within iisnode settings section.

@bjrmatos
Copy link

thnks @Siafu!! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants