Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.06 KB

File metadata and controls

30 lines (22 loc) · 1.06 KB

Configuration Setup

Sensitive Configuration Files

This project uses appsettings.json for configuration, which contains sensitive information like database credentials, JWT secrets, and Azure AD credentials. These files are excluded from source control for security.

Local Development Setup

  1. Copy the example configuration file:

    cp appsettings.Development.json.example appsettings.json
  2. Update the following values in appsettings.json:

    Database Connection String

    • ConnectionStrings:SqlServerConnStr: Update with your SQL Server connection details
      • Server
      • Database name
      • User ID
      • Password

    JWT Configuration

    • JwtOptions:SecretKey: Generate a secure secret key (minimum 256 bits)
      • You can use online tools or PowerShell: [Convert]::ToBase64String((1..64 | ForEach-Object { Get-Random -Maximum 256 }) -as [byte[]])

    Azure AD Configuration

    • AzureAd:Domain: Your Azure AD domain
    • AzureAd:TenantId: Your Azure AD tenant ID
    • AzureAd:ClientId: Your application's client ID