Accessing ENV variables in controller

The ENV variable is made available in index.html,how do i make it available in controller also.

This’ll be helpful.

http://ember.zone/handling-environment-data-with-ember-js/

That site is down now, could you post the actual solution here instead?

Sounds a lot like GitHub - fivetanley/ember-cli-dotenv: Dotenv for your ember app through ember-cli