{
  "ConnectionStrings": {
    "Default": "server=localhost;port=3306;database=ttratingdev;uid=ttrating;Pwd=tTraTing!1;Old Guids=true;"
  },

  "TokenTT": "5329485069:AAEjxuLd6B5JXVQRTpUkrIg3H5HMaMFUI8M",


  "AppSettings": {
    "BotName": "tt_rating_dev_bot",
    "MobileAppScheme": "ttar.stage",
    "PasswordResetWebUrl": "https://stage.ttar.app",
    "Cors": [ "https://localhost:7067" ],
    "AllowedAuthRedirectUris": [ "https://localhost:7067/auth" ]
  },

  "AuthOptions": {
    "SecretKey": "stage-sorokTysiahObez'yanITakDaleePoTekstu...(c)S.L."
  },

  // Same bot as staging (tt_rating_dev_bot); its BotFather Redirect URLs must also list this host's /signin-telegram.
  "Authentication": {
    "Telegram": {
      "ClientId": "5329485069",
      "ClientSecret": "W_h6DVtDqZOZY3yE3Ozqv5o6Ul-VMOkUTrch7OXZBQUC0RB8HGnIGw"
    }
  },

  // Dev OIDC provider: issuer is the local API, one public (PKCE) test client. Redirect points at oidcdebugger.com
  // for manual flow testing; add your own localhost redirect if you build a test client.
  "OpenIddict": {
    "Issuer": "http://localhost:5000",
    "WebPostLogoutRedirectUris": [ "https://localhost:7067/login" ],
    "Clients": [
      {
        "ClientId": "ttar-test-client",
        "DisplayName": "TTAR Test Client",
        "RedirectUris": [ "https://oidcdebugger.com/debug", "http://localhost:8080/callback" ],
        "PostLogoutRedirectUris": [ "http://localhost:8080/" ]
      }
    ]
  },

  // Dev: Swagger open to everyone. Fail-closed elsewhere, so the "allow all" ranges must be explicit.
  "Swagger": {
    "AllowedNetworks": [ "0.0.0.0/0", "::/0" ]
  },

  // City of the client's IP (DB-IP City Lite, CC BY 4.0 — the client shows the attribution): the venue list of a client
  // sending no coordinates starts from it. The bot downloads the monthly database into DatabaseDirectory and the API
  // reads it from there, so both need the same folder, one that survives a deploy (default: ~/.local/share/ttar/geoip).
  "IpGeo": {
    "Enabled": true,
    "DatabaseDirectory": "C:\\dev\\TTA_rating_bot\\geoip"
  },

  "TtarConfiguration": {
    "WebAppUrl": "https://stage.ttar.app",
    "ApiBaseUrl": "http://localhost:5000",
    "InternalBroadcastKey": "ibbQRE20Je_zCsTQg-Dne0wHPHUvWCotjPe4Fnntbyo=",
    "ApiPublicUrl": "http://localhost:5000",
    "EmailPreferencesKey": "1e305EEk4s4Yh2O77b5Qo6NkWIdJeKrOb0fhBy3iabc=",
    "AvatarsPath": "C:\\dev\\TTA_rating_bot\\TTRatingBot\\TTAR.API\\Images\\Avatars",
    "PhotosPath": "C:\\dev\\TTA_rating_bot\\TTRatingBot\\TTAR.API\\Images\\Photos",
    "AllowStartWithoutConfirmation": true
  },

  "Logging": {
    "LogLevel": {
      "Default": "Debug",
      "Microsoft.AspNetCore": "Warning"
    }
  }
}
