﻿{
  "AppPort": 5236,
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "Gb5SystemDTO": {
    "DataBaseType": 0, // 0 - sql, 2 - pg
    "Gb5System": "Data Source=103.38.50.226;Initial Catalog=Gb5System;Pooling=true;User Id=Developer;Password=MMtnHE5Btr39ZKjs045SQiVqDxqKLyDr96LPTEPeBCDKo/BTxRQY;Encrypt=False;TrustServerCertificate=True",
    "Gb5ServiceCache": "Data Source=192.168.0.2;Initial Catalog=USCDevsys;Pooling=true;User Id=sa;Password=vLJTRnd+iE8IeeuO2SjiR3FhcH3Nxexi",
    "JasperServer": "http://192.168.0.2:8090/jasperserver/rest_v2/reports",
    "JasperNewVersion": "YES"
  },
  "AllowedHosts": "*",
  "DXPJwt": {
    // Must equal DXPSL/appsettings.json's own "DXPJwt" section — the CandidatePortal JwtBearer
    // scheme (RecruitmentSL/Program.cs) validates against these exact values, and
    // CandidatePortalBLL.LoginAsync signs new tokens with them too (see its doc comment for why).
    "Issuer": "GB5-DXP",
    "Audience": "GB5-DXP-Portal",
    "AccessTokenMinutes": 15
  },
  "Vault": {
    "Address": "http://127.0.0.1:8200",
    "Token": "root"
  },
  "Integration": {
    "ECPModuleBaseUrl": "http://localhost:5296",
    "DXPModuleBaseUrl": "http://localhost:64493",
    // OKRSL's own standalone AppPort (GB5Solution/OKR/OKRSL/appsettings.json) — OKRSL is not
    // currently wired into EngagementHost (see Program.cs's OKRModule registration comment), so
    // this only resolves if OKRSL is run standalone. OkrIntegrationService degrades gracefully
    // when it is not reachable.
    "OKRModuleBaseUrl": "http://localhost:5020",
    // ECP TATTACHMENT ids of previously-uploaded .docx/.xlsx Correspondence templates (see
    // ECPBLL.Correspondence.Implementations.CorrespondenceBLL.LoadTemplateBytesAsync —
    // SaveAndSendCorrespondence's TemplateId is an attachment id, not a MMERGE.MergeId).
    // -1 = not configured yet: EcpIntegrationService.SendCorrespondenceAsync degrades to
    // Success=false without calling ECP until a real template is uploaded and its id set here.
    "CorrespondenceTemplates": {
      "OfferLetter": -1,
      "InterviewInvite": -1,
      "RejectionLetter": -1,
      "HireNotification": -1
    }
  },
  "OpenTelemetry": {
    "Enabled": true,
    "Exporter": "ZIPKIN",
    "ZipkinEndpoint": "http://localhost:9411/api/v2/spans",
    "OtlpEndpoint": "http://localhost:4317",
    "SamplingRatio": 1.0,
    "EnableMetrics": true,
    "EnableConsoleExporter": false,
    "ServiceVersion": "1.0.0",
    "Environment": "Development",
    "RecordExceptions": true
  }
}