/*


  This contains the default settings for the web app. Login credentials and contextual settings are
  configured via appsettings.Development.json locally, or environment properties in AWS.


*/
{
  "Logging": {
    "IncludeScopes": false,
    "LogLevel": {
      "Default": "Warning"
    }
  },
  "Context": {
    "RootUrl": null, // see top note 
    "LogParserUrl": null // see top note
  },
  "ApiClients": {
    "UserAgent": "SMAPI/{0} (+https://smapi.io)",

    "ChucklefishBaseUrl": "https://community.playstarbound.com",
    "ChucklefishModPageUrlFormat": "resources/{0}",

    "GitHubBaseUrl": "https://api.github.com",
    "GitHubStableReleaseUrlFormat": "repos/{0}/releases/latest",
    "GitHubAnyReleaseUrlFormat": "repos/{0}/releases?per_page=2", // allow for draft release (only visible if GitHub repo is owned by same account as the update check credentials)
    "GitHubAcceptHeader": "application/vnd.github.v3+json",
    "GitHubUsername": null, // see top note
    "GitHubPassword": null, // see top note

    "NexusUserAgent": "Nexus Client v0.63.15",
    "NexusBaseUrl": "http://www.nexusmods.com/stardewvalley",
    "NexusModUrlFormat": "mods/{0}",

    "PastebinBaseUrl": "https://pastebin.com/",
    "PastebinUserKey": null, // see top note
    "PastebinDevKey": null // see top note
  },

  "ModUpdateCheck": {
    "SuccessCacheMinutes": 60,
    "ErrorCacheMinutes": 5,
    "SemanticVersionRegex": "^(?>(?<major>0|[1-9]\\d*))\\.(?>(?<minor>0|[1-9]\\d*))(?>(?:\\.(?<patch>0|[1-9]\\d*))?)(?:-(?<prerelease>(?>[a-z0-9]+[\\-\\.]?)+))?$",

    "ChucklefishKey": "Chucklefish",
    "GitHubKey": "GitHub",
    "NexusKey": "Nexus"
  }
}