AppSettings example file
Here's an example of AppSettings file:
{
"ConnectionStrings": {
"Default": "Server=swagen.database.windows.net;Database=octopus-workforce-test;Encrypt=True;Authentication=Active Directory Default;"
//It's fine to store the connection string like this, there is no password and authentication will be made using Microsoft Entra.
},
"StringEncryption": {
"DefaultPassPhrase": "keyvault"
//Should be overriden by Key Vault secrets StringEncryption--DefaultPassPhrase
},
"Settings": {
"AzureStorage": {
"ConnectionString": "keyvault"
//Should be override by Key Vault Settings--AzureStorage--ConnectionString,
"BlobStorageContainerNameTempUpload": "temp-upload",
"BlobStorageContainerNameAssets": "assets",
"BlobStorageContainerNameAttachments": "attachments"
},
"JsReport": {
"ServiceUri": "http://localhost:5488/"
//It's also fine to store URLs in the appsettings file, as long as the URL is secured in some other way.
"UserName": "keyvault",
"Password": "keyvault"
},
"KeyVaultUri": "https://kv-octopus-wf-local.vault.azure.net"
//The KeyVaultUri to use is defined here, it can also be stored and GIT safely.
}
}