Skip to main content

appsettings refreneces

appsettings variables references

config collection

Using for update or modify the key and value in the appsettings.json file.

The appsettings variables are reffered to configuration of the API's. In this yaml pipeline, we can easily update or override the variable values.

Under the config block, we can set the varibles, which needs to update.

some examples of appsettings variables are,

  • ConnectionStrings.ProdDbConnStr
  • ConnectionStrings.WfDbConnStr
  • Urls
  • subpath
deployment-pipeline.yaml
#Example
apis:
----
----
config:
PathBase: "/surya-api"
ConnectionStrings_ProdDbConnStr: "User ID=postgres;Password=Surya@2023;Host=10.0.0.4;Port=5432;database=apidb;"
ConnectionStrings_WfDbConnStr: "User ID=postgres;Password=Surya@2023;Host=10.0.0.4;Port=5432;database=apidb;"
Urls_0: "https://0.0.0.0:6001"
AuthenticationBaseUrl: "https://opsrisk.app/surya-auth"
SignInSettings_Issuer: "https://opsrisk.app/surya-auth"
SignInSettings_CookieDomain: "/opsrisk.app"