Skip to content
This repository has been archived by the owner on Dec 19, 2018. It is now read-only.

Add ASPNETCORE_* environment variables by default to hosting configuration #700

Closed
davidfowl opened this issue Apr 14, 2016 · 3 comments
Closed
Assignees
Milestone

Comments

@davidfowl
Copy link
Member

Today you have to call UseDefaultConfiguration to turn on the ASPNETCORE_ environment variables. This means that ASPNETCORE_ settings aren't applied unless the application code is setup to do so. While this seems like a pure choice, it makes it hard to diagnose why things aren't working. An example of this is the IISIntegration middleware. If you don't call UseDefaultConfiguration then it won't bind to IIS.

Instead, we should just setup the the env vars by default.

/cc @DamianEdwards @Tratcher

@Tratcher
Copy link
Member

How do you turn it off?

@LeandroPT
Copy link

Hello all...

This should be reflected in all examples with upper cases :), specially hosting in IIS...

I have been banging my head with this.. Thanks for the post 👍

@muratg
Copy link

muratg commented Apr 26, 2016

@JunTaoLuo We think this is required for #727.

cc @Tratcher

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

No branches or pull requests

5 participants