Skip to content

An endpoint for SPA client apps hosted in an azure web app to get configuration values stored in environment variables.

License

Notifications You must be signed in to change notification settings

codez-one/EasyConfig

Repository files navigation

EasyConfig Azure Web App extension

provided by codez.one

Deploy To Azure

Introduction

An endpoint for SPA client apps hosted in an Azure Web App to get configuration values stored in environment variables or Azure KeyVault.

If a Single Page Application hosted in an Azure Web App needs configuration values that are only known in a deployed environment it can get a little tricky. A good example is the URI for an API endpoint used by the client app or details for a client-side authentication like MSAL. These values are known at deployment time and can be set as settings in the Web App. But the only way to access these values from the client is having server-side code that can read the values and provide them to the client.

This extension will take care on that and after installation you will get an endpoint like that:

https://easyconfigsiteextension.azurewebsites.net/.config/environment.json

The response looks like:

{
    "section":
    {
        "setting": "value"
    },
    "setting1": "value 1"
}

For users

For detail user instruction look at our user manual.

For contributors

You’re not interested in developing and just want to know more about how to use the software? Right this way

Nuget Package

The EasyConfig extension is provided as a nuget package and can be found on nuget.org. The extension will be automaticly indexed by the Azure Web App extension provider and added to the selection in the portal.

Info: As a user you do not have to use this nuget package directly.

Name Status
Internal Feed on AzDO EasyConfig.SiteExtension package in EasyConfig.SiteExtension feed in Azure Artifacts
nuget.org EasyConfig.SiteExtension Nuget Badge

Authors

  • Kirsten Kluge - Initial work - kirkone
  • Paul Jeschke - Documentation - paule96

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Inspired by this GitHub repo

About

An endpoint for SPA client apps hosted in an azure web app to get configuration values stored in environment variables.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published