﻿{
    "AppPort": 5110,
    "Logging": {
        "LogLevel": {
            "Default": "Information",
            "Microsoft.AspNetCore": "Warning"
        }
    },
  "Gb5SystemDTO": {
    "DataBaseType": 0, // 0 - sql, 2 - pg
    "Gb5System": "Data Source=217.216.78.142;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": "*",

    // SAP IT Declaration OData integration (infotypes 580–586)
    // Credentials are used for both the CSRF token fetch (GET) and the payload POST.
    // In production, supply Username and Password via environment variables or a secrets vault.
    "SapItDeclaration": {
        "BaseUrl": "https://TS4QDSVR.tafe.com:5284",
        "Username": "PAY-TAFE",
        "Password": "Tafesap@26",
        "AuditLogDirectory": "/a01/ess/PayRollSL/Logs/SAP"
    },

    // SAP PaySlip OData integration (ZPY_PAYSLIP_SRV)
    // SapClient (mandt) is resolved at runtime from morganizationunit by LoginDTO.ClientId.
    // In production, supply Username and Password via environment variables or a secrets vault.
    "SapPaySlip": {
        "BaseUrl": "https://TS4QDSVR.tafe.com:5284",
        "Username": "PAY-TAFE",
        "Password": "Tafesap@26"
    },
    "DefaultLanguage": {
        "DefaultLanguageId": "EN"
    },

    // External entity-validation microservice, called before saving ShiftPattern/GratuityGroup
    // (GB4 parity: BaseShiftPatternValidationUri / BaseGratuityGroupValidationUri). Left blank
    // by default — EntityValidationClient treats a missing/empty URI as a no-op pass, matching
    // GB4 environments where these keys were never configured.
    "EntityValidation": {
        "ShiftPatternBaseUri": "",
        "GratuityGroupBaseUri": ""
    },
    "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
    }
}